mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 21:19:46 +05:30
finalize scopes for AuthCodeGrant
This commit is contained in:
parent
03e8eb6157
commit
eb7526ae97
@ -98,6 +98,9 @@ class AuthCodeGrant extends AbstractAuthorizeGrant
|
||||
|
||||
$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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user