mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-02-03 01:09:37 +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
|
* 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
|
* @return \League\OAuth2\Server\Entity\Session
|
||||||
*/
|
*/
|
||||||
public function getByAccessToken($accessToken);
|
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
|
* Get a session's scopes
|
||||||
* @param integer $sessionId
|
* @param integer $sessionId
|
||||||
|
Loading…
x
Reference in New Issue
Block a user