You are here

public function Oauth2GrantInterface::getGrantType in Simple OAuth (OAuth2) & OpenID Connect 8.3

Same name and namespace in other branches
  1. 8.4 src/Plugin/Oauth2GrantInterface.php \Drupal\simple_oauth\Plugin\Oauth2GrantInterface::getGrantType()
  2. 8.2 src/Plugin/Oauth2GrantInterface.php \Drupal\simple_oauth\Plugin\Oauth2GrantInterface::getGrantType()
  3. 5.x src/Plugin/Oauth2GrantInterface.php \Drupal\simple_oauth\Plugin\Oauth2GrantInterface::getGrantType()

Gets the grant object.

Parameters

League\OAuth2\Server\Grant\GrantTypeInterface: The grant type.

5 methods override Oauth2GrantInterface::getGrantType()
AuthorizationCode::getGrantType in simple_oauth_extras/src/Plugin/Oauth2Grant/AuthorizationCode.php
Gets the grant object.
ClientCredentials::getGrantType in simple_oauth_extras/src/Plugin/Oauth2Grant/ClientCredentials.php
Gets the grant object.
Implicit::getGrantType in simple_oauth_extras/src/Plugin/Oauth2Grant/Implicit.php
Gets the grant object.
Password::getGrantType in src/Plugin/Oauth2Grant/Password.php
Gets the grant object.
RefreshToken::getGrantType in simple_oauth_extras/src/Plugin/Oauth2Grant/RefreshToken.php
Gets the grant object.

File

src/Plugin/Oauth2GrantInterface.php, line 19

Class

Oauth2GrantInterface
Defines an interface for OAuth2 Grant plugins.

Namespace

Drupal\simple_oauth\Plugin

Code

public function getGrantType();