Skip to content

Commit

Permalink
Make sure we return after fail!
Browse files Browse the repository at this point in the history
  • Loading branch information
mbkloster committed Aug 26, 2020
1 parent 55f97bb commit 6d291b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/omniauth/strategies/azure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ def request_phase
# credentials at the authorization endpoint.
def callback_phase
error = request.params['error_reason'] || request.params['error']
fail!(error) if error
if error
fail!(error) and return
end
@session_state = request.params['session_state']
@id_token = request.params['id_token']
@code = request.params['code']
Expand Down

0 comments on commit 6d291b2

Please sign in to comment.