mirror of
https://github.com/elyby/accounts.git
synced 2025-01-11 06:22:16 +05:30
Strip keys from the scopes list
This commit is contained in:
parent
8d28c7c453
commit
299637cc13
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user