Skip to content

Commit

Permalink
Use fail! in callback_phase
Browse files Browse the repository at this point in the history
The omniauth library provides a fail! method to hook a failure in a
plugin, which the azure plugin isn't using.

AzureAD#17
  • Loading branch information
daveclay committed Mar 22, 2018
1 parent 99c9434 commit 78b7fa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/omniauth/azure_activedirectory/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
module OmniAuth
# The release version.
module AzureActiveDirectory
VERSION = '1.0.0'
VERSION = '1.0.0-cz-1'
end
end
2 changes: 1 addition & 1 deletion lib/omniauth/strategies/azure_activedirectory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def request_phase
# credentials at the authorization endpoint.
def callback_phase
error = request.params['error_reason'] || request.params['error']
fail(OAuthError, error) if error
fail!(OAuthError, error) if error
@session_state = request.params['session_state']
@id_token = request.params['id_token']
@code = request.params['code']
Expand Down

0 comments on commit 78b7fa8

Please sign in to comment.