Skip to content

Commit

Permalink
invalidate oauth2 tokens only for seen users
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Neumann <[email protected]>
  • Loading branch information
individual-it authored and skjnldsv committed Aug 16, 2024
1 parent f4f7c75 commit cc44ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/oauth2/lib/Controller/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function addClient(string $name,
public function deleteClient(int $id): JSONResponse {
$client = $this->clientMapper->getByUid($id);

$this->userManager->callForAllUsers(function (IUser $user) use ($client) {
$this->userManager->callForSeenUsers(function (IUser $user) use ($client) {
$this->tokenProvider->invalidateTokensOfUser($user->getUID(), $client->getName());
});

Expand Down

0 comments on commit cc44ec5

Please sign in to comment.