Exception: Rack::OAuth2::Server::Resource::Forbidden

Inherits:
Abstract::Forbidden show all
Defined in:
lib/rack/oauth2/server/resource/error.rb

Instance Attribute Summary collapse

Attributes inherited from Abstract::Error

#description, #error, #realm, #status, #uri

Instance Method Summary collapse

Methods inherited from Abstract::Error

#finish

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, options = {})
  super
  @scope = options[:scope]
end

Instance Attribute Details

#scopeObject

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_paramsObject



34
35
36
# File 'lib/rack/oauth2/server/resource/error.rb', line 34

def protocol_params
  super.merge(scope: Array(scope).join(' '))
end