Module: OAuth2::Model

Defined in:
lib/oauth2/model.rb,
lib/oauth2/model/client.rb,
lib/oauth2/model/schema.rb,
lib/oauth2/model/hashing.rb,
lib/oauth2/model/client_owner.rb,
lib/oauth2/model/authorization.rb,
lib/oauth2/model/resource_owner.rb

Defined Under Namespace

Modules: ClientOwner, Hashing, ResourceOwner Classes: Authorization, Client, Schema

Class Method Summary collapse

Class Method Details

.find_access_token(access_token) ⇒ Object



12
13
14
# File 'lib/oauth2/model.rb', line 12

def self.find_access_token(access_token)
  Authorization.find_by_access_token_hash(OAuth2.hashify(access_token))
end