You are here

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

Same name and namespace in other branches
  1. 8.4 src/Plugin/Oauth2GrantManagerInterface.php \Drupal\simple_oauth\Plugin\Oauth2GrantManagerInterface::getAuthorizationServer()
  2. 8.2 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.

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 19

Class

Oauth2GrantManagerInterface

Namespace

Drupal\simple_oauth\Plugin

Code

public function getAuthorizationServer($grant_type);