Bug fixes based on previous code changes

This commit is contained in:
Alex Bilbie 2013-02-05 10:07:36 +00:00
parent 7214101cfc
commit 66bea97e8c

View File

@ -46,7 +46,7 @@ class RefreshToken implements GrantTypeInterface {
}
// 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) {
throw new Exception\ClientException(AuthServer::getExceptionMessage('invalid_client'), 8);
@ -65,8 +65,8 @@ class RefreshToken implements GrantTypeInterface {
// Validate refresh token
$sessionId = AuthServer::getStorage('client')->validateRefreshToken(
$params['refresh_token'],
$params['client_id']
$authParams['refresh_token'],
$authParams['client_id']
);
if ($sessionId === false) {