Skip to content
Browse files

changed token_url option name

  • Loading branch information...
1 parent 703e142 commit 84d8fb141ce88455032cea882ee81e3ac24ea552 @Pasta committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/omniauth/strategies/viadeo.rb
  2. +1 −1 spec/omniauth/strategies/viadeo_spec.rb
View
2 lib/omniauth/strategies/viadeo.rb
@@ -16,7 +16,7 @@ class Viadeo < OmniAuth::Strategies::OAuth2
option :client_options, {
:site => 'https://api.viadeo.com/',
:authorize_url => 'https://secure.viadeo.com/oauth-provider/authorize2',
- :access_token_path => 'https://secure.viadeo.com/oauth-provider/access_token2'
+ :token_url => 'https://secure.viadeo.com/oauth-provider/access_token2'
}
def auth_hash
View
2 spec/omniauth/strategies/viadeo_spec.rb
@@ -13,7 +13,7 @@
it 'has correct access token path' do
- subject.options.client_options.access_token_path.should eq('https://secure.viadeo.com/oauth-provider/access_token2')
+ subject.options.client_options.token_url.should eq('https://secure.viadeo.com/oauth-provider/access_token2')
end
it 'has correct authorize url' do

0 comments on commit 84d8fb1

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