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