Oauth2ClientServiceInterface.php in OAuth2 Client 8.3
Same filename and directory in other branches
Namespace
Drupal\oauth2_client\ServiceFile
src/Service/Oauth2ClientServiceInterface.phpView source
<?php
namespace Drupal\oauth2_client\Service;
/**
* Interface for the OAuth2 Client service.
*/
interface Oauth2ClientServiceInterface {
/**
* Retrieve an OAuth2 Client Plugin.
*
* @param string $pluginId
* The plugin ID of the client to be retrieved.
*
* @return \Drupal\oauth2_client\Plugin\Oauth2Client\Oauth2ClientPluginInterface
* The OAuth2 Client plugin.
*/
public function getClient($pluginId);
/**
* Retrieve an access token from storage.
*
* @param string $pluginId
* The client for which a provider should be created.
*
* @return \League\OAuth2\Client\Token\AccessTokenInterface|null
* The Access Token for the given client ID.
*/
public function retrieveAccessToken($pluginId);
/**
* Clears the access token for the given client.
*
* @param string $pluginId
* The client for which a provider should be created.
*/
public function clearAccessToken($pluginId);
}
Interfaces
Name | Description |
---|---|
Oauth2ClientServiceInterface | Interface for the OAuth2 Client service. |