From 46e7eef14eff9ad94cf47e0e5eca21f522951a87 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Mon, 18 Apr 2016 12:12:36 +0100 Subject: [PATCH] Client could potentially return an array of redirect URIs --- src/Grant/AuthCodeGrant.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Grant/AuthCodeGrant.php b/src/Grant/AuthCodeGrant.php index 1092e7bb..b9416a2b 100644 --- a/src/Grant/AuthCodeGrant.php +++ b/src/Grant/AuthCodeGrant.php @@ -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);