Client could potentially return an array of redirect URIs

This commit is contained in:
Alex Bilbie 2016-04-18 12:12:36 +01:00
parent 51f44fdf17
commit 46e7eef14e

View File

@ -199,7 +199,9 @@ class AuthCodeGrant extends AbstractAuthorizeGrant
$scopes = $this->validateScopes(
$this->getQueryStringParameter('scope', $request),
$client->getRedirectUri()
is_array($client->getRedirectUri())
? $client->getRedirectUri()[0]
: $client->getRedirectUri()
);
$stateParameter = $this->getQueryStringParameter('state', $request);