You are here

interface Oauth2GrantInterface in Simple OAuth (OAuth2) & OpenID Connect 5.x

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

Defines an interface for OAuth2 Grant plugins.

Hierarchy

Expanded class hierarchy of Oauth2GrantInterface

All classes that implement Oauth2GrantInterface

File

src/Plugin/Oauth2GrantInterface.php, line 11

Namespace

Drupal\simple_oauth\Plugin
View source
interface Oauth2GrantInterface extends PluginInspectionInterface, ContainerFactoryPluginInterface {

  /**
   * Gets the grant object.
   *
   * @return League\OAuth2\Server\Grant\GrantTypeInterface
   *   The grant type.
   */
  public function getGrantType();

}

Members

Namesort descending Modifiers Type Description Overrides
ContainerFactoryPluginInterface::create public static function Creates an instance of the plugin. 120
Oauth2GrantInterface::getGrantType public function Gets the grant object. 5
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