You are here

interface Oauth2ClientPluginInterface in OAuth2 Client 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/Oauth2Client/Oauth2ClientPluginInterface.php \Drupal\oauth2_client\Plugin\Oauth2Client\Oauth2ClientPluginInterface

Interface for Oauth2 Client plugins.

Hierarchy

Expanded class hierarchy of Oauth2ClientPluginInterface

All classes that implement Oauth2ClientPluginInterface

1 file declares its use of Oauth2ClientPluginInterface
Oauth2ClientGrantServiceBase.php in src/Service/Grant/Oauth2ClientGrantServiceBase.php

File

src/Plugin/Oauth2Client/Oauth2ClientPluginInterface.php, line 11

Namespace

Drupal\oauth2_client\Plugin\Oauth2Client
View source
interface Oauth2ClientPluginInterface extends PluginInspectionInterface, ContainerFactoryPluginInterface {

  /**
   * Retrieves the human-readable name of the Oauth2 Client plugin.
   *
   * @return string
   *   The name of the plugin.
   */
  public function getName();

  /**
   * Retrieves the id of the OAuth2 Client plugin.
   *
   * @return string
   *   The id of the plugin.
   */
  public function getId();

  /**
   * Retrieves the grant type of the plugin.
   *
   * @return string
   *   Possible values:
   *   - authorization_code
   *   - client_credentials
   *   - refresh_token
   *   - resource_owner
   */
  public function getGrantType();

  /**
   * Retrieves the client_id of the OAuth2 server.
   *
   * @return string
   *   The client_id of the OAuth2 server.
   */
  public function getClientId();

  /**
   * Retrieves the client_secret of the OAuth2 server.
   *
   * @return string
   *   The client_secret of the OAuth2 server.
   */
  public function getClientSecret();

  /**
   * Retrieves the redirect_uri of the OAuth2 server.
   *
   * @return string
   *   The redirect_uri of the OAuth2 server.
   */
  public function getRedirectUri();

  /**
   * Retrieves the authorization_uri of the OAuth2 server.
   *
   * @return string
   *   The authorization_uri of the OAuth2 server.
   */
  public function getAuthorizationUri();

  /**
   * Retrieves the token_uri of the OAuth2 server.
   *
   * @return string
   *   The authorization_uri of the OAuth2 server.
   */
  public function getTokenUri();

  /**
   * Retrieves the resource_uri of the OAuth2 server.
   *
   * @return string
   *   The resource_uri of the OAuth2 server.
   */
  public function getResourceUri();

  /**
   * Get the set of scopes for the provider to use by default.
   *
   * @return array|string|null
   *   The list of scopes for the provider to use.
   */
  public function getScopes();

  /**
   * Get the separator used to join the scopes in the OAuth2 query string.
   *
   * @return string|null
   *   The scopes separator to join the list of scopes in the query string.
   */
  public function getScopeSeparator();

  /**
   * Retrieves the username for the account to authenticate with.
   *
   * @return string
   *   The username of the account to authenticate with.
   */
  public function getUsername();

  /**
   * Retrieves the password for the account to authenticate with.
   *
   * @return string
   *   The password for the account to authenticate with.
   */
  public function getPassword();

}

Members

Namesort descending Modifiers Type Description Overrides
ContainerFactoryPluginInterface::create public static function Creates an instance of the plugin. 112
Oauth2ClientPluginInterface::getAuthorizationUri public function Retrieves the authorization_uri of the OAuth2 server. 1
Oauth2ClientPluginInterface::getClientId public function Retrieves the client_id of the OAuth2 server. 1
Oauth2ClientPluginInterface::getClientSecret public function Retrieves the client_secret of the OAuth2 server. 1
Oauth2ClientPluginInterface::getGrantType public function Retrieves the grant type of the plugin. 1
Oauth2ClientPluginInterface::getId public function Retrieves the id of the OAuth2 Client plugin. 1
Oauth2ClientPluginInterface::getName public function Retrieves the human-readable name of the Oauth2 Client plugin. 1
Oauth2ClientPluginInterface::getPassword public function Retrieves the password for the account to authenticate with. 1
Oauth2ClientPluginInterface::getRedirectUri public function Retrieves the redirect_uri of the OAuth2 server. 1
Oauth2ClientPluginInterface::getResourceUri public function Retrieves the resource_uri of the OAuth2 server. 1
Oauth2ClientPluginInterface::getScopes public function Get the set of scopes for the provider to use by default. 1
Oauth2ClientPluginInterface::getScopeSeparator public function Get the separator used to join the scopes in the OAuth2 query string. 1
Oauth2ClientPluginInterface::getTokenUri public function Retrieves the token_uri of the OAuth2 server. 1
Oauth2ClientPluginInterface::getUsername public function Retrieves the username for the account to authenticate with. 1
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2