Class: Doorkeeper::OAuth::ClientCredentialsRequest::Creator
- Inherits:
-
Object
- Object
- Doorkeeper::OAuth::ClientCredentialsRequest::Creator
- Defined in:
- lib/doorkeeper/oauth/client_credentials/creator.rb
Instance Method Summary collapse
Instance Method Details
#call(client, scopes, attributes = {}) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/doorkeeper/oauth/client_credentials/creator.rb', line 5 def call(client, scopes, attributes = {}) AccessToken.create(attributes.merge( application_id: client.id, scopes: scopes.to_s )) end |