Skip to content

Commit

Permalink
Update Instagram strategy for OAuth2 0.5.0 gem
Browse files Browse the repository at this point in the history
* Specify the mode and set the token param
  • Loading branch information
bdotdub committed Aug 12, 2011
1 parent 92dae19 commit fb54f98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions oa-oauth/lib/omniauth/strategies/oauth2/instagram.rb
Expand Up @@ -42,6 +42,7 @@ def callback_phase
end

def user_data
@access_token.options.merge!({:param_name => 'access_token', :mode => :query})
@data ||= MultiJson.decode(@access_token.get('/v1/users/self'))
end

Expand Down
5 changes: 5 additions & 0 deletions oa-oauth/spec/omniauth/strategies/oauth2/instagram_spec.rb
@@ -0,0 +1,5 @@
require 'spec_helper'

describe OmniAuth::Strategies::GitHub do
it_should_behave_like "an oauth2 strategy"
end

0 comments on commit fb54f98

Please sign in to comment.