mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-23 05:29:52 +05:30
Bug fixes based on previous code changes
This commit is contained in:
parent
7214101cfc
commit
66bea97e8c
@ -46,7 +46,7 @@ class RefreshToken implements GrantTypeInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Validate client ID and redirect URI
|
// Validate client ID and redirect URI
|
||||||
$clientDetails = AuthServer::getStorage('client')->get($authParams['client_id'], $authParams['client_secret']);
|
$clientDetails = AuthServer::getStorage('client')->getClient($authParams['client_id'], $authParams['client_secret']);
|
||||||
|
|
||||||
if ($clientDetails === false) {
|
if ($clientDetails === false) {
|
||||||
throw new Exception\ClientException(AuthServer::getExceptionMessage('invalid_client'), 8);
|
throw new Exception\ClientException(AuthServer::getExceptionMessage('invalid_client'), 8);
|
||||||
@ -65,8 +65,8 @@ class RefreshToken implements GrantTypeInterface {
|
|||||||
|
|
||||||
// Validate refresh token
|
// Validate refresh token
|
||||||
$sessionId = AuthServer::getStorage('client')->validateRefreshToken(
|
$sessionId = AuthServer::getStorage('client')->validateRefreshToken(
|
||||||
$params['refresh_token'],
|
$authParams['refresh_token'],
|
||||||
$params['client_id']
|
$authParams['client_id']
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($sessionId === false) {
|
if ($sessionId === false) {
|
||||||
|
Loading…
Reference in New Issue
Block a user