Exception: Doorkeeper::Errors::InvalidScopeParameter
- Inherits:
-
DoorkeeperError
- Object
- StandardError
- DoorkeeperError
- Doorkeeper::Errors::InvalidScopeParameter
- Defined in:
- lib/doorkeeper/errors.rb
Overview
Raised when the scope parameter is present but not a string — e.g.
scope[a]=b, which Rack parses into a Hash. Its octets cannot be split
into scope tokens, so the request is malformed (RFC 6749 §3.3) and must
be answered with invalid_request rather than an unhandled 500.
Instance Method Summary collapse
-
#reason ⇒ Object
Maps to
invalid_request.unknown("... or is otherwise malformed"). - #type ⇒ Object
Methods inherited from DoorkeeperError
Instance Method Details
#reason ⇒ Object
Maps to invalid_request.unknown ("... or is otherwise malformed").
Without a reason the token endpoint would translate nil and return a
blank error_description.
65 66 67 |
# File 'lib/doorkeeper/errors.rb', line 65 def reason :unknown end |
#type ⇒ Object
58 59 60 |
# File 'lib/doorkeeper/errors.rb', line 58 def type :invalid_request end |