Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable25] invalidate existing tokens when deleting an oauth client #37231

Merged
merged 10 commits into from Jun 15, 2023

Conversation

backportbot-nextcloud[bot]
Copy link

@backportbot-nextcloud backportbot-nextcloud bot commented Mar 15, 2023

  • ⚠️ This backport had conflicts that were resolved with the 'ours' merge strategy and is likely incomplete

backport of #36033

@backportbot-nextcloud backportbot-nextcloud bot added this to the Nextcloud 25.0.5 milestone Mar 15, 2023
@blizzz blizzz mentioned this pull request Mar 15, 2023
@come-nc come-nc changed the title [stable25] [master] invalidate existing tokens when deleting an oauth client [stable25] invalidate existing tokens when deleting an oauth client Mar 15, 2023
@come-nc come-nc marked this pull request as ready for review March 15, 2023 13:10
@@ -92,6 +104,11 @@ public function addClient(string $name,

public function deleteClient(int $id): JSONResponse {
$client = $this->clientMapper->getByUid($id);

$this->userManager->callForAllUsers(function (IUser $user) use ($client) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not run against all users, but only against known ones (callForSeenUsers).

Also, this should not run in a user request context, only on the background, as it may take ages.

@blizzz
Copy link
Member

blizzz commented May 17, 2023

moving to 25.0.8. What is the state with this PR?

@individual-it
Copy link
Contributor

all done from my point of view, see discussion in #37230

@blizzz blizzz added the 3. to review Waiting for reviews label May 23, 2023
@blizzz blizzz mentioned this pull request Jun 12, 2023
@blizzz
Copy link
Member

blizzz commented Jun 14, 2023

@individual-it conflicts 😩

individual-it and others added 10 commits June 15, 2023 13:19
Signed-off-by: Artur Neumann <artur@jankaritech.com>
Signed-off-by: Artur Neumann <artur@jankaritech.com>
Signed-off-by: Artur Neumann <artur@jankaritech.com>
Signed-off-by: Artur Neumann <artur@jankaritech.com>
Signed-off-by: Artur Neumann <artur@jankaritech.com>
Signed-off-by: Artur Neumann <artur@jankaritech.com>
Signed-off-by: Artur Neumann <artur@jankaritech.com>
Signed-off-by: Artur Neumann <artur@jankaritech.com>
Signed-off-by: Artur Neumann <artur@jankaritech.com>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
hopklaas35

This comment was marked as spam.

@individual-it
Copy link
Contributor

@blizzz fixed

@blizzz blizzz disabled auto-merge June 15, 2023 09:02
@blizzz blizzz merged commit 60bb6da into stable25 Jun 15, 2023
30 checks passed
@blizzz blizzz deleted the backport/36033/stable25 branch June 15, 2023 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants