Validate all client credentials

This commit is contained in:
Alex Bilbie 2013-02-01 15:59:43 +00:00
parent 9fd7ccc137
commit 5abb84eda0

View File

@ -55,7 +55,7 @@ class AuthCode implements GrantTypeInterface {
} }
// Validate client ID and redirect URI // Validate client ID and redirect URI
$clientDetails = AuthServer::getStorage('client')->get($authParams['client_id'], null, $authParams['redirect_uri']); $clientDetails = AuthServer::getStorage('client')->get($authParams['client_id'], $authParams['client_secret'], $authParams['redirect_uri']);
if ($clientDetails === false) { if ($clientDetails === false) {
throw new Exception\ClientException(AuthServer::getExceptionMessage('invalid_client'), 8); throw new Exception\ClientException(AuthServer::getExceptionMessage('invalid_client'), 8);