interface Oauth2ClientGrantServiceInterface in OAuth2 Client 8.2
Same name and namespace in other branches
- 8.3 src/Service/Grant/Oauth2ClientGrantServiceInterface.php \Drupal\oauth2_client\Service\Grant\Oauth2ClientGrantServiceInterface
Interface for OAuth2 Client Grant Services.
Hierarchy
- interface \Drupal\oauth2_client\Service\Grant\Oauth2ClientGrantServiceInterface
Expanded class hierarchy of Oauth2ClientGrantServiceInterface
All classes that implement Oauth2ClientGrantServiceInterface
1 file declares its use of Oauth2ClientGrantServiceInterface
- Oauth2ClientService.php in src/
Service/ Oauth2ClientService.php
File
- src/
Service/ Grant/ Oauth2ClientGrantServiceInterface.php, line 8
Namespace
Drupal\oauth2_client\Service\GrantView source
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);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Oauth2ClientGrantServiceInterface:: |
public | function | Get an OAuth2 access token. | 4 |
Oauth2ClientGrantServiceInterface:: |
public | function | Get the league/oauth2 provider. | 4 |