You are here

public function Oauth2GrantManagerInterface::getAuthorizationServer in Simple OAuth (OAuth2) & OpenID Connect 8.4

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

Gets the authorization server.

Parameters

string $grant_type: The grant type used as plugin ID.

\Drupal\consumers\Entity\Consumer|null $client: The consumer entity. May be NULL for BC.

Return value

\League\OAuth2\Server\AuthorizationServer The authorization server.

Throws

\League\OAuth2\Server\Exception\OAuthServerException When the grant cannot be found.

1 method overrides Oauth2GrantManagerInterface::getAuthorizationServer()
Oauth2GrantManager::getAuthorizationServer in src/Plugin/Oauth2GrantManager.php
Gets the authorization server.

File

src/Plugin/Oauth2GrantManagerInterface.php, line 23

Class

Oauth2GrantManagerInterface

Namespace

Drupal\simple_oauth\Plugin

Code

public function getAuthorizationServer($grant_type, Consumer $client = NULL);