mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +05:30
Inject the access token object
This commit is contained in:
parent
1183fe80c6
commit
b5f02d0739
@ -25,11 +25,18 @@ interface SessionInterface
|
||||
|
||||
/**
|
||||
* Get a session from an access token
|
||||
* @param string $accessToken The access token
|
||||
* @param \League\OAuth2\Server\Entity\AccessToken $accessToken The access token
|
||||
* @return \League\OAuth2\Server\Entity\Session
|
||||
*/
|
||||
public function getByAccessToken($accessToken);
|
||||
|
||||
/**
|
||||
* Get a session from an auth code
|
||||
* @param \League\OAuth2\Server\Entity\AuthCode $authCode The auth code
|
||||
* @return \League\OAuth2\Server\Entity\Session
|
||||
*/
|
||||
public function getByAuthCode($authCode);
|
||||
|
||||
/**
|
||||
* Get a session's scopes
|
||||
* @param integer $sessionId
|
||||
|
Loading…
Reference in New Issue
Block a user