You are here

abstract class Oauth2GrantBase in Simple OAuth (OAuth2) & OpenID Connect 8.4

Same name and namespace in other branches
  1. 8.2 src/Plugin/Oauth2GrantBase.php \Drupal\simple_oauth\Plugin\Oauth2GrantBase
  2. 8.3 src/Plugin/Oauth2GrantBase.php \Drupal\simple_oauth\Plugin\Oauth2GrantBase
  3. 5.x src/Plugin/Oauth2GrantBase.php \Drupal\simple_oauth\Plugin\Oauth2GrantBase

Base class for OAuth2 Grant plugins.

Hierarchy

Expanded class hierarchy of Oauth2GrantBase

5 files declare their use of Oauth2GrantBase
AuthorizationCode.php in src/Plugin/Oauth2Grant/AuthorizationCode.php
ClientCredentials.php in src/Plugin/Oauth2Grant/ClientCredentials.php
Implicit.php in src/Plugin/Oauth2Grant/Implicit.php
Password.php in src/Plugin/Oauth2Grant/Password.php
RefreshToken.php in src/Plugin/Oauth2Grant/RefreshToken.php

File

src/Plugin/Oauth2GrantBase.php, line 11

Namespace

Drupal\simple_oauth\Plugin
View source
abstract class Oauth2GrantBase extends PluginBase implements Oauth2GrantInterface {

  /**
   * {@inheritdoc}
   */
  public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static($configuration, $plugin_id, $plugin_definition);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Oauth2GrantBase::create public static function Creates an instance of the plugin. Overrides ContainerFactoryPluginInterface::create 4
Oauth2GrantInterface::getGrantType public function Gets the grant object. 5
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition. 1
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface::getBaseId
PluginBase::getDerivativeId public function Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface::getDerivativeId
PluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition 3
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::isConfigurable public function Determines if the plugin is configurable.
PluginBase::__construct public function Constructs a \Drupal\Component\Plugin\PluginBase object. 92