Skip to content

Commit

Permalink
Merge pull request #14 from opf/catch-errors
Browse files Browse the repository at this point in the history
Catch relevant error during callback phase
  • Loading branch information
NobodysNightmare authored Feb 3, 2025
2 parents d63f596 + e8c2564 commit 3d5fec6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/omniauth/openid_connect/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module OmniAuth
module OpenIDConnect
VERSION = '0.4.0'
VERSION = '0.4.1'
end
end
2 changes: 1 addition & 1 deletion lib/omniauth/strategies/openid_connect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def callback_phase

super
end
rescue CallbackError => e
rescue CallbackError, Rack::OAuth2::Client::Error => e
fail!(:invalid_credentials, e)
rescue ::Timeout::Error, ::Errno::ETIMEDOUT => e
fail!(:timeout, e)
Expand Down

0 comments on commit 3d5fec6

Please sign in to comment.