You are here

public function Oauth2ClientServiceInterface::retrieveAccessToken in OAuth2 Client 8.2

Same name and namespace in other branches
  1. 8.3 src/Service/Oauth2ClientServiceInterface.php \Drupal\oauth2_client\Service\Oauth2ClientServiceInterface::retrieveAccessToken()

Retrieve an access token from the Drupal state.

Parameters

string $clientId: The client for which a provider should be created.

Return value

\League\OAuth2\Client\Token\AccessTokenInterface The Access Token for the given client ID.

1 method overrides Oauth2ClientServiceInterface::retrieveAccessToken()
Oauth2ClientServiceBase::retrieveAccessToken in src/Service/Oauth2ClientServiceBase.php
Retrieve an access token from the Drupal state.

File

src/Service/Oauth2ClientServiceInterface.php, line 30

Class

Oauth2ClientServiceInterface
Interface for the OAuth2 Client service.

Namespace

Drupal\oauth2_client\Service

Code

public function retrieveAccessToken($clientId);