mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-13 00:35:53 +05:30
Added setSession on TokenTypeInterface as per #255
This commit is contained in:
parent
cfada388db
commit
76de634f2b
@ -12,6 +12,7 @@
|
||||
namespace League\OAuth2\Server\TokenType;
|
||||
|
||||
use League\OAuth2\Server\AbstractServer;
|
||||
use League\OAuth2\Server\Entity\SessionEntity;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
interface TokenTypeInterface
|
||||
@ -43,6 +44,12 @@ interface TokenTypeInterface
|
||||
*/
|
||||
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
|
||||
* @param \Symfony\Component\HttpFoundation\Request $request
|
||||
|
Loading…
Reference in New Issue
Block a user