class Doorkeeper::OAuth::ForbiddenTokenResponse
def self.from_scopes(scopes, attributes = {})
def self.from_scopes(scopes, attributes = {}) new(attributes.merge(scopes: scopes)) end
def description
def description scope = { scope: %i[doorkeeper scopes] } @description ||= @scopes.map { |r| I18n.translate r, scope }.join('\n') end
def headers
def headers headers = super headers.delete 'WWW-Authenticate' headers end
def initialize(attributes = {})
def initialize(attributes = {}) super(attributes.merge(name: :invalid_scope, state: :forbidden)) @scopes = attributes[:scopes] end
def status
def status :forbidden end