public function Oauth2GrantManagerInterface::getAuthorizationServer in Simple OAuth (OAuth2) & OpenID Connect 8.4
Same name and namespace in other branches
- 8.2 src/Plugin/Oauth2GrantManagerInterface.php \Drupal\simple_oauth\Plugin\Oauth2GrantManagerInterface::getAuthorizationServer()
- 8.3 src/Plugin/Oauth2GrantManagerInterface.php \Drupal\simple_oauth\Plugin\Oauth2GrantManagerInterface::getAuthorizationServer()
- 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
Namespace
Drupal\simple_oauth\PluginCode
public function getAuthorizationServer($grant_type, Consumer $client = NULL);