Sha256: a0a045b4ce2494614b14e69881ef5f9c84765cf5bbfbfa7edcd875ff739baf2e

Contents?: true

Size: 799 Bytes

Versions: 4

Compression:

Stored size: 799 Bytes

Contents

# frozen_string_literal: true

module Doorkeeper
  module DeviceAuthorizationGrant
    # Model class, similar to Doorkeeper `AccessGrant`, but specific for
    # handling OAuth 2.0 Device Authorization Grant.
    class DeviceGrant < ActiveRecord::Base
      include DeviceGrantMixin

      # @!attribute application_id
      #   @return [Integer]

      # @!attribute resource_owner_id
      #   @return [Integer, nil]

      # @!attribute expires_in
      #   @return [Integer]

      # @!attribute scopes
      #   @return [String]

      # @!attribute device_code
      #   @return [String]

      # @!attribute user_code
      #   @return [String, nil]

      # @!attribute created_at
      #   @return [Time]

      # @!attribute last_polling_at
      #   @return [Time, nil]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
doorkeeper-device_authorization_grant-1.0.1 lib/doorkeeper/device_authorization_grant/orm/active_record/device_grant.rb
doorkeeper-device_authorization_grant-1.0.0 lib/doorkeeper/device_authorization_grant/orm/active_record/device_grant.rb
doorkeeper-device_authorization_grant-0.2.1 lib/doorkeeper/device_authorization_grant/orm/active_record/device_grant.rb
doorkeeper-device_authorization_grant-0.2.0 lib/doorkeeper/device_authorization_grant/orm/active_record/device_grant.rb