Exception: Doorkeeper::Errors::InvalidScopeParameter

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

Methods inherited from DoorkeeperError

translate_options

Instance Method Details

#reasonObject

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

#typeObject



58
59
60
# File 'lib/doorkeeper/errors.rb', line 58

def type
  :invalid_request
end