lib/doorkeeper-mongodb/mixins/mongoid/access_token_mixin.rb
# Looking for not revoked Access Token records that belongs to specific
# Application and Resource Owner.
#
# @param application_id [Integer]
#   ID of the Application model instance
# @param resource_owner [Mongoid::Document]
#   ID of the Resource Owner model instance
#
# @return [Doorkeeper::AccessToken] array of matching AccessToken objects
#
Looking for not revoked Access Token records that belongs to specific
Application and Resource Owner.
Looking for not revoked Access Token records that belongs to specific Application and Resource Owner .
def authorized_tokens_for(application_id, resource_owner)
            send(order_method, created_at_desc)
              .by_resource_owner(resource_owner)
              .where(application_id: application_id, revoked_at: nil)
          end
def authorized_tokens_for ( application_id , resource_owner ) send ( order_method , created_at_desc ) . by_resource_owner ( resource_owner ) . where ( application_id : application_id , revoked_at : nil ) end
Looking for not revoked Access Token records that belongs to specific
Application and Resource Owner.
Looking for not revoked Access Token records that belongs to specific Application and Resource Owner .
array of matching AccessToken objects
array of matching AccessToken objects
Doorkeeper::AccessToken
application_id
ID of the Application model instance
ID of the Application model instance
resource_owner
ID of the Resource Owner model instance
ID of the Resource Owner model instance