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(); $accessTokenExpires = time() + $this->authServer->getExpiresIn();
$accessTokenExpiresIn = $this->authServer->getExpiresIn(); $accessTokenExpiresIn = $this->authServer->getExpiresIn();
$this->authServer->getStorage('session')->updateSession(
$session['id'], $accessTokenId = $this->authServer->getStorage('session')->updateSession($session['id'], array(
null, 'access_token' => $accessToken,
$accessToken, 'access_token_expire' => $accessTokenExpires,
$refreshToken, 'refresh_token' => $refreshToken
$accessTokenExpires, ));
'granted'
);
// Associate scopes with the access token // Associate scopes with the access token
if ( ! is_null($session['scope_ids'])) { if ( ! is_null($session['scope_ids'])) {
$scopeIds = explode(',', $session['scope_ids']); $scopeIds = explode(',', $session['scope_ids']);