Updated updateSession code

This commit is contained in:
Alex Bilbie 2013-04-29 00:01:34 +01:00
parent 351bec6019
commit 6543ebcd4d

View File

@ -229,14 +229,12 @@ class AuthCode implements GrantTypeInterface {
$accessTokenExpires = time() + $this->authServer->getExpiresIn();
$accessTokenExpiresIn = $this->authServer->getExpiresIn();
$this->authServer->getStorage('session')->updateSession(
$session['id'],
null,
$accessToken,
$refreshToken,
$accessTokenExpires,
'granted'
);
$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']);