mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-22 03:22:44 +05:30
Added missing state parameter
This commit is contained in:
parent
e74e5061d8
commit
ffac434bcc
@ -249,7 +249,7 @@ class AuthServer
|
|||||||
public function checkAuthoriseParams($inputParams = array())
|
public function checkAuthoriseParams($inputParams = array())
|
||||||
{
|
{
|
||||||
// Auth params
|
// Auth params
|
||||||
$authParams = self::getParam(array('client_id', 'redirect_uri', 'response_type', 'scope'), 'get', $inputParams);
|
$authParams = self::getParam(array('client_id', 'redirect_uri', 'response_type', 'scope', 'state'), 'get', $inputParams);
|
||||||
|
|
||||||
if (is_null($authParams['client_id'])) {
|
if (is_null($authParams['client_id'])) {
|
||||||
throw new Exception\ClientException(sprintf(self::$exceptionMessages['invalid_request'], 'client_id'), 0);
|
throw new Exception\ClientException(sprintf(self::$exceptionMessages['invalid_request'], 'client_id'), 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user