mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-02 00:43:11 +05:30
Adds create method to AuthCodeInterface. Relates to #160.
This commit is contained in:
parent
d40ee11ef5
commit
c1269a97d6
@ -26,6 +26,16 @@ interface AuthCodeInterface
|
|||||||
*/
|
*/
|
||||||
public function get($code);
|
public function get($code);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create an auth code.
|
||||||
|
* @param string $token The token ID
|
||||||
|
* @param integer $expireTime Token expire time
|
||||||
|
* @param integer $sessionId Session identifier
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function create($token, $expireTime, $sessionId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the scopes for an access token
|
* Get the scopes for an access token
|
||||||
* @param \League\OAuth2\Server\Entity\AuthCodeEntity $token The auth code
|
* @param \League\OAuth2\Server\Entity\AuthCodeEntity $token The auth code
|
||||||
|
Loading…
Reference in New Issue
Block a user