Skip to content

Commit

Permalink
Issue omniauth/omniauth-oauth2#70 mitigated
Browse files Browse the repository at this point in the history
  • Loading branch information
ebababi committed Apr 1, 2016
1 parent 991620a commit e6fef6b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/omniauth/strategies/gaggleamp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ def raw_info
@raw_info ||= access_token.get('/user').parsed
end

# Override to exclude query parameters from callback URL. It is required
# for a perfect match during SSO validation. See
# intridea/omniauth-oauth2#70 for more information.
def callback_url
full_host + script_name + callback_path
end

# Override authorization parameters to support user provider preference.
def authorize_params
super.tap do |params|
Expand Down

0 comments on commit e6fef6b

Please sign in to comment.