Exception: Rack::OAuth2::Server::Resource::Forbidden
- Inherits:
-
Abstract::Forbidden
- Object
- StandardError
- Abstract::Error
- Abstract::Forbidden
- Rack::OAuth2::Server::Resource::Forbidden
- Defined in:
- lib/rack/oauth2/server/resource/error.rb
Instance Attribute Summary collapse
-
#scope ⇒ Object
Returns the value of attribute scope.
Attributes inherited from Abstract::Error
#description, #error, #realm, #status, #uri
Instance Method Summary collapse
-
#initialize(error = :forbidden, description = nil, options = {}) ⇒ Forbidden
constructor
A new instance of Forbidden.
- #protocol_params ⇒ Object
Methods inherited from Abstract::Error
Constructor Details
#initialize(error = :forbidden, description = nil, options = {}) ⇒ Forbidden
Returns a new instance of Forbidden.
29 30 31 32 |
# File 'lib/rack/oauth2/server/resource/error.rb', line 29 def initialize(error = :forbidden, description = nil, = {}) super @scope = [:scope] end |
Instance Attribute Details
#scope ⇒ Object
Returns the value of attribute scope.
27 28 29 |
# File 'lib/rack/oauth2/server/resource/error.rb', line 27 def scope @scope end |
Instance Method Details
#protocol_params ⇒ Object
34 35 36 |
# File 'lib/rack/oauth2/server/resource/error.rb', line 34 def protocol_params super.merge(scope: Array(scope).join(' ')) end |