Fix state parameter check typo

This commit is contained in:
Michael Gooden 2013-03-04 17:31:59 +02:00
parent f102b4fb68
commit f70c039275

View File

@ -291,8 +291,8 @@ class AuthServer
throw new Exception\ClientException(sprintf(self::$exceptionMessages['invalid_request'], 'redirect_uri'), 0); throw new Exception\ClientException(sprintf(self::$exceptionMessages['invalid_request'], 'redirect_uri'), 0);
} }
if ($this->requireStateParam === true && is_null($authParams['redirect_uri'])) { if ($this->requireStateParam === true && is_null($authParams['state'])) {
throw new Exception\ClientException(sprintf(self::$exceptionMessages['invalid_request'], 'redirect_uri'), 0); throw new Exception\ClientException(sprintf(self::$exceptionMessages['invalid_request'], 'state'), 0);
} }
// Validate client ID and redirect URI // Validate client ID and redirect URI