You are here

public function Oauth2ClientGrantServiceInterface::getGrantProvider in OAuth2 Client 8.2

Same name and namespace in other branches
  1. 8.3 src/Service/Grant/Oauth2ClientGrantServiceInterface.php \Drupal\oauth2_client\Service\Grant\Oauth2ClientGrantServiceInterface::getGrantProvider()

Get the league/oauth2 provider.

Parameters

string $clientId: The plugin ID of the OAuth2 Client plugin for which an access token should be retrieved.

Return value

\League\OAuth2\Client\Provider\AbstractProvider

4 methods override Oauth2ClientGrantServiceInterface::getGrantProvider()
AuthorizationCodeGrantService::getGrantProvider in src/Service/Grant/AuthorizationCodeGrantService.php
Get the league/oauth2 provider.
ClientCredentialsGrantService::getGrantProvider in src/Service/Grant/ClientCredentialsGrantService.php
Get the league/oauth2 provider.
RefreshTokenGrantService::getGrantProvider in src/Service/Grant/RefreshTokenGrantService.php
Get the league/oauth2 provider.
ResourceOwnersCredentialsGrantService::getGrantProvider in src/Service/Grant/ResourceOwnersCredentialsGrantService.php
Get the league/oauth2 provider.

File

src/Service/Grant/Oauth2ClientGrantServiceInterface.php, line 27

Class

Oauth2ClientGrantServiceInterface
Interface for OAuth2 Client Grant Services.

Namespace

Drupal\oauth2_client\Service\Grant

Code

public function getGrantProvider($clientId);