Skip to content
Browse files

changed taobao to tb because their API doesnt allow the use of the wo…

…rd taobao in the callback url
  • Loading branch information...
1 parent c3d474a commit 189177a77855d392b9682ec9a6ef495feefd5831 @l4u l4u committed May 21, 2011
View
2 oa-oauth/lib/omniauth/oauth.rb
@@ -35,7 +35,7 @@ module Strategies
autoload :SmugMug, 'omniauth/strategies/smug_mug'
autoload :SoundCloud, 'omniauth/strategies/sound_cloud'
autoload :T163, 'omniauth/strategies/t163'
- autoload :Taobao, 'omniauth/strategies/taobao'
+ autoload :TB, 'omniauth/strategies/taobao'
autoload :Teambox, 'omniauth/strategies/teambox'
autoload :ThirtySevenSignals, 'omniauth/strategies/thirty_seven_signals'
autoload :Tqq, 'omniauth/strategies/tqq'
View
6 oa-oauth/lib/omniauth/strategies/taobao.rb
@@ -9,8 +9,8 @@ module Strategies
# basic user information.
#
# @example Basic Usage
- # use OmniAuth::Strategies::Taobao, 'client_id', 'client_secret'
- class Taobao < OAuth2
+ # use OmniAuth::Strategies::TB, 'client_id', 'client_secret'
+ class TB < OAuth2
# @param [Rack Application] app standard middleware application parameter
# @param [String] client_id the app key at taobao open platform
# @param [String] client_secret the app secret at taobao open platform
@@ -23,7 +23,7 @@ def initialize(app, client_id = nil, client_secret = nil, options = {}, &block)
:access_token_url => "/token"
}
- super(app, :taobao, client_id, client_secret, client_options, options, &block)
+ super(app, :tb, client_id, client_secret, client_options, options, &block)
end
def user_data
View
2 oa-oauth/spec/omniauth/strategies/taobao_spec.rb
@@ -1,5 +1,5 @@
require File.expand_path('../../../spec_helper', __FILE__)
-describe OmniAuth::Strategies::Taobao do
+describe OmniAuth::Strategies::TB do
it_should_behave_like "an oauth2 strategy"
end

0 comments on commit 189177a

Please sign in to comment.
Something went wrong with that request. Please try again.