Sha256: 1aa5197c5c3b85273c416d4683ccaf4ffa13acfa65067ae499ef913e53d718a4

Contents?: true

Size: 568 Bytes

Versions: 4

Compression:

Stored size: 568 Bytes

Contents

module Doorkeeper
  class AccessGrant
    include Mongoid::Document
    include Mongoid::Timestamps

    include DoorkeeperMongodb::Compatible

    include DoorkeeperMongodb::Shared::Scopes
    include DoorkeeperMongodb::Mixins::Mongoid::AccessGrantMixin

    store_in collection: :oauth_access_grants

    field :resource_owner_id, type: BSON::ObjectId
    field :token, type: String
    field :expires_in, type: Integer
    field :redirect_uri, type: String
    field :revoked_at, type: DateTime

    index({ token: 1 }, unique: true)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
doorkeeper-mongodb-4.2.0 lib/doorkeeper/orm/mongoid6/access_grant.rb
doorkeeper-mongodb-4.1.0 lib/doorkeeper/orm/mongoid6/access_grant.rb
doorkeeper-mongodb-4.0.1 lib/doorkeeper/orm/mongoid6/access_grant.rb
doorkeeper-mongodb-4.0.0 lib/doorkeeper/orm/mongoid6/access_grant.rb