From 04b8394009f66a938b714ca9916936e8a68eed27 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Mon, 4 Feb 2013 18:44:19 +0000 Subject: [PATCH] Updated method calls to reflect naming changes --- src/OAuth2/AuthServer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OAuth2/AuthServer.php b/src/OAuth2/AuthServer.php index 3819b58b..391c2a7f 100644 --- a/src/OAuth2/AuthServer.php +++ b/src/OAuth2/AuthServer.php @@ -176,7 +176,7 @@ class AuthServer } // Validate client ID and redirect URI - $clientDetails = self::getStorage('client')->get($authParams['client_id'], null, $authParams['redirect_uri']); + $clientDetails = self::getStorage('client')->getClient($authParams['client_id'], null, $authParams['redirect_uri']); if ($clientDetails === false) { throw new Exception\ClientException(self::$exceptionMessages['invalid_client'], 8); @@ -217,7 +217,7 @@ class AuthServer $authParams['scopes'] = array(); foreach ($scopes as $scope) { - $scopeDetails = self::getStorage('scope')->get($scope); + $scopeDetails = self::getStorage('scope')->getScope($scope); if ($scopeDetails === false) { throw new Exception\ClientException(sprintf(self::$exceptionMessages['invalid_scope'], $scope), 4);