From 299637cc13b7a5b1acc89c1b8e0552e59160e823 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sun, 15 Dec 2019 17:20:29 +0300 Subject: [PATCH] Strip keys from the scopes list --- api/modules/oauth/models/OauthProcess.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {