class Rack::OAuth2::Server::Resource::Forbidden

Attributes

scope[RW]

Public Class Methods

new(error = :forbidden, description = nil, options = {}) click to toggle source
# File lib/rack/oauth2/server/resource/error.rb, line 29
def initialize(error = :forbidden, description = nil, options = {})
  super
  @scope = options[:scope]
end

Public Instance Methods

protocol_params() click to toggle source
# File lib/rack/oauth2/server/resource/error.rb, line 34
def protocol_params
  super.merge(scope: Array(scope).join(' '))
end