ClientCredentials.php in Simple OAuth (OAuth2) & OpenID Connect 5.x
Same filename and directory in other branches
Namespace
Drupal\simple_oauth\Plugin\Oauth2GrantFile
src/Plugin/Oauth2Grant/ClientCredentials.phpView source
<?php
namespace Drupal\simple_oauth\Plugin\Oauth2Grant;
use Drupal\simple_oauth\Plugin\Oauth2GrantBase;
use Drupal\simple_oauth\Grant\ClientCredentialsOverrideGrant;
/**
* The client credentials grant plugin.
*
* @Oauth2Grant(
* id = "client_credentials",
* label = @Translation("Client Credentials")
* )
*/
class ClientCredentials extends Oauth2GrantBase {
/**
* {@inheritdoc}
*/
public function getGrantType() {
return new ClientCredentialsOverrideGrant();
}
}
Classes
Name | Description |
---|---|
ClientCredentials | The client credentials grant plugin. |