ClientCredentials.php in Simple OAuth (OAuth2) & OpenID Connect 8.2
File
simple_oauth_extras/src/Plugin/Oauth2Grant/ClientCredentials.php
View source
<?php
namespace Drupal\simple_oauth_extras\Plugin\Oauth2Grant;
use Drupal\simple_oauth\Plugin\Oauth2GrantBase;
use League\OAuth2\Server\Grant\ClientCredentialsGrant;
use League\OAuth2\Server\Repositories\RefreshTokenRepositoryInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
class ClientCredentials extends Oauth2GrantBase {
public function getGrantType() {
return new ClientCredentialsGrant();
}
}
Classes
Name |
Description |
ClientCredentials |
Plugin annotation
@Oauth2Grant(
id = "client_credentials",
label = @Translation("Client Credentials")
) |