You are here

public function Oauth2ClientGrantServiceInterface::getAccessToken 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::getAccessToken()

Get an OAuth2 access token.

Parameters

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

4 methods override Oauth2ClientGrantServiceInterface::getAccessToken()
AuthorizationCodeGrantService::getAccessToken in src/Service/Grant/AuthorizationCodeGrantService.php
Get an OAuth2 access token.
ClientCredentialsGrantService::getAccessToken in src/Service/Grant/ClientCredentialsGrantService.php
Get an OAuth2 access token.
RefreshTokenGrantService::getAccessToken in src/Service/Grant/RefreshTokenGrantService.php
Get an OAuth2 access token.
ResourceOwnersCredentialsGrantService::getAccessToken in src/Service/Grant/ResourceOwnersCredentialsGrantService.php
Get an OAuth2 access token.

File

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

Class

Oauth2ClientGrantServiceInterface
Interface for OAuth2 Client Grant Services.

Namespace

Drupal\oauth2_client\Service\Grant

Code

public function getAccessToken($pluginId);