mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Strip keys from the scopes list
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user