Oauth2ClientGrantServiceInterface.php in OAuth2 Client 8.2
Same filename and directory in other branches
Namespace
Drupal\oauth2_client\Service\GrantFile
src/Service/Grant/Oauth2ClientGrantServiceInterface.phpView source
<?php
namespace Drupal\oauth2_client\Service\Grant;
/**
* Interface for OAuth2 Client Grant Services.
*/
interface Oauth2ClientGrantServiceInterface {
/**
* Get an OAuth2 access token.
*
* @param string $clientId
* The plugin ID of the OAuth2 Client plugin for which an access token
* should be retrieved.
*/
public function getAccessToken($clientId);
/**
* Get the league/oauth2 provider.
*
* @param string $clientId
* The plugin ID of the OAuth2 Client plugin for which an access token
* should be retrieved.
* @return \League\OAuth2\Client\Provider\AbstractProvider
*/
public function getGrantProvider($clientId);
}
Interfaces
Name | Description |
---|---|
Oauth2ClientGrantServiceInterface | Interface for OAuth2 Client Grant Services. |