You are here

public function Implicit::getGrantType in Simple OAuth (OAuth2) & OpenID Connect 5.x

Same name and namespace in other branches
  1. 8.4 src/Plugin/Oauth2Grant/Implicit.php \Drupal\simple_oauth\Plugin\Oauth2Grant\Implicit::getGrantType()

Gets the grant object.

Return value

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

Overrides Oauth2GrantInterface::getGrantType

File

src/Plugin/Oauth2Grant/Implicit.php, line 57

Class

Implicit
The implicit grant plugin.

Namespace

Drupal\simple_oauth\Plugin\Oauth2Grant

Code

public function getGrantType() {
  return new ImplicitGrant($this->expiration);
}