diff --git a/api/modules/oauth/models/OauthProcess.php b/api/modules/oauth/models/OauthProcess.php index 8e087a7..1a3b674 100644 --- a/api/modules/oauth/models/OauthProcess.php +++ b/api/modules/oauth/models/OauthProcess.php @@ -340,9 +340,9 @@ class OauthProcess { } private function getScopesList(AuthorizationRequest $request): array { - return array_map(function(ScopeEntityInterface $scope): string { + return array_values(array_map(function(ScopeEntityInterface $scope): string { return $scope->getIdentifier(); - }, $request->getScopes()); + }, $request->getScopes())); } private function findOauthSession(Account $account, OauthClient $client): ?OauthSession {