Skip to content

Commit

Permalink
Fixes params passed to authorize (#119)
Browse files Browse the repository at this point in the history
Previously query_string only worked on GET requests to the auth endpoint, this change takes params from GET or POST

Co-authored-by: Frederik Prijck <[email protected]>
  • Loading branch information
davidpatrick and frederikprijck authored Jan 20, 2021
1 parent a6f5220 commit ce997f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/omniauth/strategies/auth0.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ def client
# Define the parameters used for the /authorize endpoint
def authorize_params
params = super
parsed_query = Rack::Utils.parse_query(request.query_string)
%w[connection connection_scope prompt screen_hint].each do |key|
params[key] = parsed_query[key] if parsed_query.key?(key)
params[key] = request.params[key] if request.params.key?(key)
end

# Generate nonce
Expand Down

0 comments on commit ce997f8

Please sign in to comment.