You are here

private function Oauth2ClientService::getClientCredentialsProvider in OAuth2 Client 8.2

Retrieves the league/oauth2-client provider for the 'client_credentials' grant type.

Return value

\League\OAuth2\Client\Provider\AbstractProvider The Provider for the given client ID.

1 call to Oauth2ClientService::getClientCredentialsProvider()
Oauth2ClientService::getProvider in src/Service/Oauth2ClientService.php

File

src/Service/Oauth2ClientService.php, line 178

Class

Oauth2ClientService
The OAuth2 Client service.

Namespace

Drupal\oauth2_client\Service

Code

private function getClientCredentialsProvider($clientId) {
  return $this->grantServices['client_credentials']
    ->getGrantProvider($clientId);
}