Sha256: fdf10198d8fd3ae9f9465ad21f431ff72b1e03659a4fdc4839f985b3c63a31b4
Contents?: true
Size: 689 Bytes
Versions: 1
Compression:
Stored size: 689 Bytes
Contents
module Doorkeeper module OAuth class IdTokenRequest attr_accessor :pre_auth, :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 response end def deny pre_auth.error = :access_denied pre_auth.error_response end private def response id_token = Doorkeeper::OpenidConnect::IdToken.new(auth.token, pre_auth.nonce) IdTokenResponse.new(pre_auth, auth, id_token) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-openid_connect-1.7.1 | lib/doorkeeper/oauth/id_token_request.rb |