Strip keys from the scopes list

This commit is contained in:
ErickSkrauch 2019-12-15 17:20:29 +03:00
parent 8d28c7c453
commit 299637cc13

View File

@ -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 {