Sha256: 7f7c8a0828fe355979fa1651a02bb94b38d1c7f14042096c4571ff7c2c9af5b6
Contents?: true
Size: 826 Bytes
Versions: 6
Compression:
Stored size: 826 Bytes
Contents
module Doorkeeper module OAuth module Authorization class Token attr_accessor :pre_auth, :resource_owner, :token def initialize(pre_auth, resource_owner) @pre_auth = pre_auth @resource_owner = resource_owner end def issue_token @token ||= AccessToken.find_or_create_for( pre_auth.client, resource_owner.id, pre_auth.scopes, configuration.access_token_expires_in, false ) end def native_redirect { controller: 'doorkeeper/token_info', action: :show, access_token: token.token } end def configuration Doorkeeper.configuration end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems