You are here

public function Oauth2ClientGrantServiceInterface::getGrantProvider in OAuth2 Client 8.3

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

Get the league/oauth2 provider.

Parameters

string $pluginId: The plugin ID of an OAuth2 Client plugin.

Return value

\League\OAuth2\Client\Provider\AbstractProvider The requested provider.

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 28

Class

Oauth2ClientGrantServiceInterface
Interface for OAuth2 Client Grant Services.

Namespace

Drupal\oauth2_client\Service\Grant

Code

public function getGrantProvider($pluginId);