public function ResourceOwnersCredentialsGrantService::getGrantProvider in OAuth2 Client 8.2
Same name and namespace in other branches
- 8.3 src/Service/Grant/ResourceOwnersCredentialsGrantService.php \Drupal\oauth2_client\Service\Grant\ResourceOwnersCredentialsGrantService::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
Overrides Oauth2ClientGrantServiceInterface::getGrantProvider
File
- src/
Service/ Grant/ ResourceOwnersCredentialsGrantService.php, line 36
Class
- ResourceOwnersCredentialsGrantService
- Handles Authorization Grants for the OAuth2 Client module.
Namespace
Drupal\oauth2_client\Service\GrantCode
public function getGrantProvider($clientId) {
return $this
->getProvider($clientId);
}