Exception: Rack::OAuth2::Server::InvalidGrantError

Inherits:
OAuthError
  • Object
show all
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

#code

Instance Method Summary collapse

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(message = nil)
  super :invalid_grant, message || "This access grant is no longer valid."
end