You are here

Oauth2GrantInterface.php in Simple OAuth (OAuth2) & OpenID Connect 8.4

File

src/Plugin/Oauth2GrantInterface.php
View source
<?php

namespace Drupal\simple_oauth\Plugin;

use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;

/**
 * Defines an interface for OAuth2 Grant plugins.
 */
interface Oauth2GrantInterface extends PluginInspectionInterface, ContainerFactoryPluginInterface {

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

}

Interfaces

Namesort descending Description
Oauth2GrantInterface Defines an interface for OAuth2 Grant plugins.