mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Inject the access token object
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user