Delete an associated auth code

This commit is contained in:
Alex Bilbie 2013-04-29 00:02:00 +01:00
parent 17bc6a1512
commit 79338d0d75

View File

@ -228,12 +228,14 @@ class AuthCode implements GrantTypeInterface {
$accessTokenExpires = time() + $this->authServer->getExpiresIn();
$accessTokenExpiresIn = $this->authServer->getExpiresIn();
$this->authServer->getStorage('session')->deleteAuthCode($session['id']);
$accessTokenId = $this->authServer->getStorage('session')->updateSession($session['id'], array(
'access_token' => $accessToken,
'access_token_expire' => $accessTokenExpires,
'refresh_token' => $refreshToken
));
// Associate scopes with the access token
if ( ! is_null($session['scope_ids'])) {
$scopeIds = explode(',', $session['scope_ids']);