Skip to content

Commit

Permalink
Merge pull request #426 from bdotdub/master
Browse files Browse the repository at this point in the history
Update Instagram strategy to be compatible with new OAuth2 gem
  • Loading branch information
sferik committed Aug 12, 2011
2 parents 92dae19 + fb54f98 commit de55bff
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 de55bff

Please sign in to comment.