From 143a2e32f70d1aea5d6de502c6016f5790e8b4b6 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Mon, 18 Apr 2016 12:21:42 +0100 Subject: [PATCH] Client may return an array of redirect URIs --- src/Grant/ImplicitGrant.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Grant/ImplicitGrant.php b/src/Grant/ImplicitGrant.php index 9f754d71..f3a74ced 100644 --- a/src/Grant/ImplicitGrant.php +++ b/src/Grant/ImplicitGrant.php @@ -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);