mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-01 16:33:07 +05:30
Updated newAuthoriseRequest
This commit is contained in:
parent
b39a9a5edc
commit
2dcb81d93c
@ -165,14 +165,13 @@ class AuthCode implements GrantTypeInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create a new session
|
// Create a new session
|
||||||
$sessionId = $this->authServer->getStorage('session')->createSession(array(
|
$sessionId = $this->authServer->getStorage('session')->createSession($authParams['client_id'], $type, $typeId);
|
||||||
'client_id' => $authParams['client_id'],
|
|
||||||
'owner_type' => $type,
|
// Associate a redirect URI
|
||||||
'owner_id' => $typeId,
|
$this->authServer->getStorage('session')->associateRedirectUri($sessionId, $authParams['redirect_uri']);
|
||||||
'redirect_uri' =>$authParams['redirect_uri'],
|
|
||||||
'auth_code' => $authCode,
|
// Associate the auth code
|
||||||
'scope_ids' => implode(',', $scopeIds)
|
$this->authServer->getStorage('session')->associateAuthCode($sessionId, $authCode, time()+600, implode(',', $scopeIds));
|
||||||
));
|
|
||||||
|
|
||||||
return $authCode;
|
return $authCode;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user