public function Oauth2ClientGrantServiceInterface::getAccessToken in OAuth2 Client 8.2
Same name and namespace in other branches
- 8.3 src/Service/Grant/Oauth2ClientGrantServiceInterface.php \Drupal\oauth2_client\Service\Grant\Oauth2ClientGrantServiceInterface::getAccessToken()
Get an OAuth2 access token.
Parameters
string $clientId: 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\GrantCode
public function getAccessToken($clientId);