Added grant to getClient calls. Fixes #21

This commit is contained in:
Alex Bilbie
2013-03-27 14:47:07 +00:00
parent 18933d5075
commit a7b4f7d66b
5 changed files with 7 additions and 6 deletions

View File

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