Skip to content

Commit

Permalink
including prompt and login_hint to options (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelakira authored and m0n9oose committed May 19, 2018
1 parent 905b525 commit 23495e0
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions lib/omniauth/strategies/openid_connect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ def authorize_uri
response_type: options.response_type,
scope: options.scope,
state: new_state,
login_hint: options.login_hint,
prompt: options.prompt,
nonce: (new_nonce if options.send_nonce),
hd: options.hd,
}
Expand Down Expand Up @@ -199,15 +201,15 @@ def session

def key_or_secret
case options.client_signing_alg
when :HS256, :HS384, :HS512
return client_options.secret
when :RS256, :RS384, :RS512
if options.client_jwk_signing_key
return parse_jwk_key(options.client_jwk_signing_key)
elsif options.client_x509_signing_key
return parse_x509_key(options.client_x509_signing_key)
end
else
when :HS256, :HS384, :HS512
return client_options.secret
when :RS256, :RS384, :RS512
if options.client_jwk_signing_key
return parse_jwk_key(options.client_jwk_signing_key)
elsif options.client_x509_signing_key
return parse_x509_key(options.client_x509_signing_key)
end
else
end
end

Expand Down

0 comments on commit 23495e0

Please sign in to comment.