Comment update

This commit is contained in:
Alex Bilbie 2013-04-29 00:01:51 +01:00
parent 6543ebcd4d
commit 17bc6a1512

View File

@ -220,8 +220,7 @@ class AuthCode implements GrantTypeInterface {
throw new Exception\ClientException(sprintf($this->authServer->getExceptionMessage('invalid_grant'), 'code'), 9); throw new Exception\ClientException(sprintf($this->authServer->getExceptionMessage('invalid_grant'), 'code'), 9);
} }
// A session ID was returned so update it with an access token, // A session ID was returned so update it with an access token and remove the authorisation code
// remove the authorisation code, change the stage to 'granted'
$accessToken = SecureKey::make(); $accessToken = SecureKey::make();
$refreshToken = ($this->authServer->hasGrantType('refresh_token')) ? SecureKey::make() : null; $refreshToken = ($this->authServer->hasGrantType('refresh_token')) ? SecureKey::make() : null;