Skip to content

Commit

Permalink
Fix compatibility with omniauth-oauth 1.4+
Browse files Browse the repository at this point in the history
  • Loading branch information
pjg committed Jul 27, 2017
1 parent 4681bce commit 416e1a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/omniauth/strategies/verticalresponse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ class Verticalresponse < OmniAuth::Strategies::OAuth2
token_url: 'api/v1/oauth/access_token'
}
option :provider_ignores_state, true

uid do
access_token.params['user_id']
end

def callback_url
full_host + script_name + callback_path
end
end
end
end

0 comments on commit 416e1a6

Please sign in to comment.