mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +05:30
Updated updateSession code
This commit is contained in:
parent
351bec6019
commit
6543ebcd4d
@ -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']);
|
||||||
|
Loading…
Reference in New Issue
Block a user