Sha256: 9699009f9f6b9f355406b3dd6431559b3d41041c1db21a817968a9acc289b292

Contents?: true

Size: 234 Bytes

Versions: 4

Compression:

Stored size: 234 Bytes

Contents

module Oa2c
  class AuthorizationCode
    include Mongoid::Document
    include OAuth2Token

    field :redirect_uri

    def access_token
      @access_token ||= expire! && user.access_tokens.create(client: client)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
oa2c-0.1.2 app/models/oa2c/authorization_code.rb
oa2c-0.1.1 app/models/oa2c/authorization_code.rb
oa2c-0.1.0 app/models/oa2c/authorization_code.rb
oa2c-0.0.2 app/models/oa2c/authorization_code.rb