Slide 26
Slide 26 text
https://github.com/omniauth/omniauth_openid_connect/blob/master/lib/omniauth/strategies/openid_con
nect.rb#L107-L136
26
def callback_phase
error = params['error_reason'] || params['error']
error_description = params['error_description'] || params['error_reason']
invalid_state = params['state'].to_s.empty? || params['state'] != stored_state
raise CallbackError, error: params['error'], reason: error_description, uri: params['error_uri'] if error
raise CallbackError, error: :csrf_detected, reason: "Invalid 'state' parameter" if invalid_state
..(省略)..
end