private function Oauth2ClientService::getResourceOwnersCredentialsAccessToken in OAuth2 Client 8.2
Retrieves an access token for the 'resource_owner' grant type.
Return value
\League\OAuth2\Client\Token\AccessTokenInterface The Access Token for the given client ID.
1 call to Oauth2ClientService::getResourceOwnersCredentialsAccessToken()
- Oauth2ClientService::getAccessToken in src/
Service/ Oauth2ClientService.php
File
- src/
Service/ Oauth2ClientService.php, line 188
Class
- Oauth2ClientService
- The OAuth2 Client service.
Namespace
Drupal\oauth2_client\ServiceCode
private function getResourceOwnersCredentialsAccessToken($clientId) {
$access_token = $this
->retrieveAccessToken($clientId);
if (!$access_token) {
$access_token = $this->grantServices['resource_owner']
->getAccessToken($clientId);
}
return $access_token;
}