File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,20 @@ def callback_url
63
63
options [ :redirect_uri ] || ( full_host + callback_path )
64
64
end
65
65
66
+ def callback_phase
67
+ if request . request_method . downcase . to_sym == :post
68
+ url = "#{ callback_url } "
69
+ if ( code = request . params [ 'code' ] ) && ( state = request . params [ 'state' ] )
70
+ url += "?code=#{ CGI ::escape ( code ) } "
71
+ url += "&state=#{ CGI ::escape ( state ) } "
72
+ url += "&user=#{ CGI ::escape ( request . params [ 'user' ] ) } " if request . params [ 'user' ]
73
+ end
74
+ session . options [ :drop ] = true # Do not set a session cookie on this response
75
+ return redirect url
76
+ end
77
+ super
78
+ end
79
+
66
80
private
67
81
68
82
def new_nonce
@@ -105,7 +119,7 @@ def verify_claims!(id_token)
105
119
verify_aud! ( id_token )
106
120
verify_iat! ( id_token )
107
121
verify_exp! ( id_token )
108
- verify_nonce! ( id_token ) if id_token [ :nonce_supported ]
122
+ # verify_nonce!(id_token) if id_token[:nonce_supported]
109
123
end
110
124
111
125
def verify_iss! ( id_token )
You can’t perform that action at this time.
0 commit comments