mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-02 11:40:47 +05:30
Declared methods from AbstractGrant on GrantTypeInterface as per #255
This commit is contained in:
parent
2f971dc77f
commit
cfada388db
@ -52,8 +52,7 @@ abstract class AbstractGrant implements GrantTypeInterface
|
|||||||
protected $accessTokenTTL;
|
protected $accessTokenTTL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the identifier
|
* {@inheritdoc}
|
||||||
* @return string
|
|
||||||
*/
|
*/
|
||||||
public function getIdentifier()
|
public function getIdentifier()
|
||||||
{
|
{
|
||||||
@ -61,9 +60,7 @@ abstract class AbstractGrant implements GrantTypeInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the identifier
|
* {@inheritdoc}
|
||||||
* @param string $identifier
|
|
||||||
* @return self
|
|
||||||
*/
|
*/
|
||||||
public function setIdentifier($identifier)
|
public function setIdentifier($identifier)
|
||||||
{
|
{
|
||||||
@ -73,8 +70,7 @@ abstract class AbstractGrant implements GrantTypeInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the response type
|
* {@inheritdoc}
|
||||||
* @return string
|
|
||||||
*/
|
*/
|
||||||
public function getResponseType()
|
public function getResponseType()
|
||||||
{
|
{
|
||||||
@ -107,9 +103,7 @@ abstract class AbstractGrant implements GrantTypeInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Inject the authorization server into the grant
|
* {@inheritdoc}
|
||||||
* @param \League\OAuth2\Server\AuthorizationServer $server The authorization server instance
|
|
||||||
* @return self
|
|
||||||
*/
|
*/
|
||||||
public function setAuthorizationServer(AuthorizationServer $server)
|
public function setAuthorizationServer(AuthorizationServer $server)
|
||||||
{
|
{
|
||||||
|
@ -11,11 +11,39 @@
|
|||||||
|
|
||||||
namespace League\OAuth2\Server\Grant;
|
namespace League\OAuth2\Server\Grant;
|
||||||
|
|
||||||
|
use League\OAuth2\Server\AuthorizationServer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Grant type interface
|
* Grant type interface
|
||||||
*/
|
*/
|
||||||
interface GrantTypeInterface
|
interface GrantTypeInterface
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Return the identifier
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getIdentifier();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the identifier
|
||||||
|
* @param string $identifier
|
||||||
|
* @return self
|
||||||
|
*/
|
||||||
|
public function setIdentifier($identifier);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the response type
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getResponseType();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Inject the authorization server into the grant
|
||||||
|
* @param \League\OAuth2\Server\AuthorizationServer $server The authorization server instance
|
||||||
|
* @return self
|
||||||
|
*/
|
||||||
|
public function setAuthorizationServer(AuthorizationServer $server);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Complete the grant flow
|
* Complete the grant flow
|
||||||
* @return array
|
* @return array
|
||||||
|
Loading…
Reference in New Issue
Block a user