Sha256: ad6c4448bbdc0889229bd74e20cb28f1a05b349467d184a1fbd2823db078ef58
Contents?: true
Size: 567 Bytes
Versions: 2
Compression:
Stored size: 567 Bytes
Contents
# frozen_string_literal: true module Doorkeeper module OAuth class TokenRequest attr_reader :pre_auth, :resource_owner def initialize(pre_auth, resource_owner) @pre_auth = pre_auth @resource_owner = resource_owner end 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 pre_auth.error = :access_denied pre_auth.error_response end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-5.4.0.rc2 | lib/doorkeeper/oauth/token_request.rb |
doorkeeper-5.4.0.rc1 | lib/doorkeeper/oauth/token_request.rb |