Client may return an array of redirect URIs

This commit is contained in:
Alex Bilbie 2016-04-18 12:21:42 +01:00
parent 8f418cff08
commit 143a2e32f7

View File

@ -146,7 +146,9 @@ class ImplicitGrant 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);