From d7df2f7e24a63dc52dcfccac4133d7c88dedd042 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 13 Sep 2016 15:16:58 +0100 Subject: [PATCH] Fix for #650 --- src/Grant/ImplicitGrant.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Grant/ImplicitGrant.php b/src/Grant/ImplicitGrant.php index a85b70d4..3e97d81f 100644 --- a/src/Grant/ImplicitGrant.php +++ b/src/Grant/ImplicitGrant.php @@ -150,6 +150,14 @@ class ImplicitGrant extends AbstractAuthorizeGrant ? $client->getRedirectUri()[0] : $client->getRedirectUri() ); + + // Finalize the requested scopes + $scopes = $this->scopeRepository->finalizeScopes( + $scopes, + $this->getIdentifier(), + $client, + $authCodePayload->user_id + ); $stateParameter = $this->getQueryStringParameter('state', $request);