Oauth2GrantManagerInterface.php in Simple OAuth (OAuth2) & OpenID Connect 8.4
Same filename and directory in other branches
Namespace
Drupal\simple_oauth\PluginFile
src/Plugin/Oauth2GrantManagerInterface.phpView source
<?php
namespace Drupal\simple_oauth\Plugin;
use Drupal\consumers\Entity\Consumer;
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);
}
Interfaces
Name | Description |
---|---|
Oauth2GrantManagerInterface |