There was an error while loading. Please reload this page.
1 parent 1c56447 commit c4335ccCopy full SHA for c4335cc
lib/omniauth_open_id_connect.rb
@@ -83,6 +83,8 @@ def id_token_info
83
def callback_phase
84
discover! if options[:discovery]
85
oauth2_callback_phase = super
86
+ return oauth2_callback_phase if env['omniauth.error']
87
+
88
if id_token_info["nonce"].empty? || id_token_info["nonce"] != session.delete("omniauth.nonce")
89
return fail!(:csrf_detected, CallbackError.new(:csrf_detected, "CSRF detected"))
90
end
0 commit comments