Merge pull request #176 from mdwheele/adds-authcode-create-method

Adds create method to AuthCodeInterface
This commit is contained in:
Alex Bilbie 2014-05-30 10:51:01 +01:00
commit 0b1edadaa7

View File

@ -26,6 +26,16 @@ interface AuthCodeInterface
*/
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
* @param \League\OAuth2\Server\Entity\AuthCodeEntity $token The auth code