class Doorkeeper::OAuth::TokenRequest
def authorize
def authorize auth = Authorization::Token.new(pre_auth, resource_owner) auth.issue_token! CodeResponse.new(pre_auth, auth, response_on_fragment: true) end
def deny
def deny pre_auth.error = Errors::AccessDenied pre_auth.error_response end
def initialize(pre_auth, resource_owner)
def initialize(pre_auth, resource_owner) @pre_auth = pre_auth @resource_owner = resource_owner end