From 66bea97e8c0075ff77b061a17417c07199f98b60 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 5 Feb 2013 10:07:36 +0000 Subject: [PATCH] Bug fixes based on previous code changes --- src/OAuth2/Grant/RefreshToken.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OAuth2/Grant/RefreshToken.php b/src/OAuth2/Grant/RefreshToken.php index e4e3fb51..1f89d36c 100644 --- a/src/OAuth2/Grant/RefreshToken.php +++ b/src/OAuth2/Grant/RefreshToken.php @@ -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) {