mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 09:47:46 +05:30
Delete an associated auth code
This commit is contained in:
parent
17bc6a1512
commit
79338d0d75
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user