Sha256: b5f0544ee59636444bb9d68636aee83d46c1df52c0f0d4bd002bb03790f7c317
Contents?: true
Size: 724 Bytes
Versions: 3
Compression:
Stored size: 724 Bytes
Contents
module Doorkeeper module OAuth module Authorization class Code 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 ||= AccessGrant.create!( application_id: pre_auth.client.id, resource_owner_id: resource_owner.id, expires_in: configuration.authorization_code_expires_in, redirect_uri: pre_auth.redirect_uri, scopes: pre_auth.scopes.to_s ) end def configuration Doorkeeper.configuration end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-1.3.1 | lib/doorkeeper/oauth/authorization/code.rb |
doorkeeper-1.3.0 | lib/doorkeeper/oauth/authorization/code.rb |
doorkeeper-1.2.0 | lib/doorkeeper/oauth/authorization/code.rb |