Exception: Rack::OAuth2::Server::InvalidGrantError
- Inherits:
-
OAuthError
- Object
- StandardError
- OAuthError
- Rack::OAuth2::Server::InvalidGrantError
- Defined in:
- lib/rack/oauth2/server/errors.rb
Overview
The provided access grant is invalid, expired, or revoked (e.g. invalid assertion, expired authorization token, bad end-user password credentials, or mismatching authorization code and redirection URI).
Instance Attribute Summary
Attributes inherited from OAuthError
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ InvalidGrantError
constructor
A new instance of InvalidGrantError.
Constructor Details
#initialize(message = nil) ⇒ InvalidGrantError
Returns a new instance of InvalidGrantError.
45 46 47 |
# File 'lib/rack/oauth2/server/errors.rb', line 45 def initialize( = nil) super :invalid_grant, || "This access grant is no longer valid." end |