mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-04 20:48:59 +05:30
commit
8075190e0c
@ -29,23 +29,23 @@ interface AccessTokenInterface extends StorageInterface
|
|||||||
/**
|
/**
|
||||||
* Get the scopes for an access token
|
* Get the scopes for an access token
|
||||||
* @param \League\OAuth2\Server\Entity\AccessTokenEntity $token The access token
|
* @param \League\OAuth2\Server\Entity\AccessTokenEntity $token The access token
|
||||||
* @return array Array of \League\OAuth2\Server\Entity\ScopeEntity
|
* @return array Array of \League\OAuth2\Server\Entity\ScopeEntity
|
||||||
*/
|
*/
|
||||||
public function getScopes(AccessTokenEntity $token);
|
public function getScopes(AccessTokenEntity $token);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new access token
|
* Creates a new access token
|
||||||
* @param string $token The access token
|
* @param string $token The access token
|
||||||
* @param integer $expireTime The expire time expressed as a unix timestamp
|
* @param integer $expireTime The expire time expressed as a unix timestamp
|
||||||
* @param string|integer $sessionId The session ID
|
* @param string|integer $sessionId The session ID
|
||||||
* @return \League\OAuth2\Server\Entity\AccessTokenEntity
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function create($token, $expireTime, $sessionId);
|
public function create($token, $expireTime, $sessionId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Associate a scope with an acess token
|
* Associate a scope with an acess token
|
||||||
* @param \League\OAuth2\Server\Entity\AccessTokenEntity $token The access token
|
* @param \League\OAuth2\Server\Entity\AccessTokenEntity $token The access token
|
||||||
* @param \League\OAuth2\Server\Entity\ScopeEntity $scope The scope
|
* @param \League\OAuth2\Server\Entity\ScopeEntity $scope The scope
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function associateScope(AccessTokenEntity $token, ScopeEntity $scope);
|
public function associateScope(AccessTokenEntity $token, ScopeEntity $scope);
|
||||||
|
@ -32,7 +32,6 @@ interface AuthCodeInterface extends StorageInterface
|
|||||||
* @param integer $expireTime Token expire time
|
* @param integer $expireTime Token expire time
|
||||||
* @param integer $sessionId Session identifier
|
* @param integer $sessionId Session identifier
|
||||||
* @param string $redirectUri Client redirect uri
|
* @param string $redirectUri Client redirect uri
|
||||||
*
|
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function create($token, $expireTime, $sessionId, $redirectUri);
|
public function create($token, $expireTime, $sessionId, $redirectUri);
|
||||||
|
Loading…
Reference in New Issue
Block a user