From eb7526ae977e84e089aa9b86b617fcb00061c01b Mon Sep 17 00:00:00 2001 From: Bobselp Date: Sun, 10 Apr 2016 18:07:18 +0200 Subject: [PATCH] finalize scopes for AuthCodeGrant --- src/Grant/AuthCodeGrant.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Grant/AuthCodeGrant.php b/src/Grant/AuthCodeGrant.php index 01c59f809..d62fc2ed4 100644 --- a/src/Grant/AuthCodeGrant.php +++ b/src/Grant/AuthCodeGrant.php @@ -98,6 +98,9 @@ public function respondToAccessTokenRequest( $scopes[] = $scope; } + + // Finalize the requested scopes + $scopes = $this->scopeRepository->finalizeScopes($scopes, $this->getIdentifier(), $client, $authCodePayload->user_id); } catch (\LogicException $e) { throw OAuthServerException::invalidRequest('code', 'Cannot decrypt the authorization code'); }