interface Oauth2GrantManagerInterface in Simple OAuth (OAuth2) & OpenID Connect 5.x
Same name and namespace in other branches
- 8.4 src/Plugin/Oauth2GrantManagerInterface.php \Drupal\simple_oauth\Plugin\Oauth2GrantManagerInterface
- 8.2 src/Plugin/Oauth2GrantManagerInterface.php \Drupal\simple_oauth\Plugin\Oauth2GrantManagerInterface
- 8.3 src/Plugin/Oauth2GrantManagerInterface.php \Drupal\simple_oauth\Plugin\Oauth2GrantManagerInterface
Hierarchy
- interface \Drupal\simple_oauth\Plugin\Oauth2GrantManagerInterface
Expanded class hierarchy of Oauth2GrantManagerInterface
All classes that implement Oauth2GrantManagerInterface
3 files declare their use of Oauth2GrantManagerInterface
- Oauth2AuthorizeController.php in src/
Controller/ Oauth2AuthorizeController.php - Oauth2AuthorizeForm.php in src/
Controller/ Oauth2AuthorizeForm.php - Oauth2Token.php in src/
Controller/ Oauth2Token.php
File
- src/
Plugin/ Oauth2GrantManagerInterface.php, line 7
Namespace
Drupal\simple_oauth\PluginView source
interface Oauth2GrantManagerInterface {
/**
* Gets the authorization server.
*
* @param string $grant_type
* The grant type used as plugin ID.
* @param \Drupal\consumers\Entity\Consumer|null $client
* The consumer entity. May be NULL for BC.
*
* @throws \League\OAuth2\Server\Exception\OAuthServerException
* When the grant cannot be found.
*
* @return \League\OAuth2\Server\AuthorizationServer
* The authorization server.
*/
public function getAuthorizationServer($grant_type, Consumer $client = NULL);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Oauth2GrantManagerInterface:: |
public | function | Gets the authorization server. | 1 |