Added stateParamRequired method

This commit is contained in:
Alex Bilbie
2013-03-31 13:57:24 +01:00
parent 351580d9d8
commit 5f1609577e
2 changed files with 11 additions and 1 deletions

View File

@@ -90,7 +90,7 @@ class AuthCode implements GrantTypeInterface {
throw new Exception\ClientException(sprintf($this->authServer->getExceptionMessage('invalid_request'), 'redirect_uri'), 0);
}
if ($this->authServer->scopeParamRequired() === true && is_null($authParams['state'])) {
if ($this->authServer->stateParamRequired() === true && is_null($authParams['state'])) {
throw new Exception\ClientException(sprintf($this->authServer->getExceptionMessage('invalid_request'), 'state'), 0);
}