mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Added setSession on TokenTypeInterface as per #255
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
namespace League\OAuth2\Server\TokenType;
|
namespace League\OAuth2\Server\TokenType;
|
||||||
|
|
||||||
use League\OAuth2\Server\AbstractServer;
|
use League\OAuth2\Server\AbstractServer;
|
||||||
|
use League\OAuth2\Server\Entity\SessionEntity;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
|
||||||
interface TokenTypeInterface
|
interface TokenTypeInterface
|
||||||
@@ -43,6 +44,12 @@ interface TokenTypeInterface
|
|||||||
*/
|
*/
|
||||||
public function getParam($key);
|
public function getParam($key);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \League\OAuth2\Server\Entity\SessionEntity $session
|
||||||
|
* @return self
|
||||||
|
*/
|
||||||
|
public function setSession(SessionEntity $session);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine the access token in the authorization header
|
* Determine the access token in the authorization header
|
||||||
* @param \Symfony\Component\HttpFoundation\Request $request
|
* @param \Symfony\Component\HttpFoundation\Request $request
|
||||||
|
Reference in New Issue
Block a user