Skip to content

Commit

Permalink
🐛 Compatibility with Rack::Timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
pboling committed Sep 4, 2024
1 parent 92a9607 commit c1b85ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rack/openid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def begin_authentication(env, qs)

url = open_id_redirect_url(req, oidreq, params)
return redirect_to(url)
rescue ::OpenID::OpenIDError, Timeout::Error => e
rescue ::OpenID::OpenIDError, ::Timeout::Error
env[RESPONSE] = MissingResponse.new
return @app.call(env)
end
Expand Down Expand Up @@ -302,7 +302,7 @@ def default_store

def timeout_protection_from_identity_server
yield
rescue Timeout::Error
rescue ::Timeout::Error
TimeoutResponse.new
end
end
Expand Down

0 comments on commit c1b85ce

Please sign in to comment.