Skip to content

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

Merged
blizzz merged 10 commits into
stable25from
backport/36033/stable25
Jun 15, 2023
Merged

[stable25] invalidate existing tokens when deleting an oauth client#37231
blizzz merged 10 commits into
stable25from
backport/36033/stable25

Conversation

@backportbot-nextcloud

@backportbot-nextcloudbackportbot-nextcloudBot commented Mar 15, 2023

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

backport of #36033

@backportbot-nextcloudbackportbot-nextcloudBot added this to the Nextcloud 25.0.5 milestone Mar 15, 2023
@blizzzblizzz mentioned this pull request Mar 15, 2023
@come-nccome-nc changed the title [stable25] [master] invalidate existing tokens when deleting an oauth client[stable25] invalidate existing tokens when deleting an oauth clientMar 15, 2023
@come-nc
come-ncforce-pushed the backport/36033/stable25 branch from fae11df to 58fb023CompareMarch 15, 2023 13:07
@come-nc
come-nc marked this pull request as ready for review March 15, 2023 13:10
public function deleteClient(int $id): JSONResponse {
$client = $this->clientMapper->getByUid($id);

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

Copy link
Copy Markdown
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.

@skjnldsvskjnldsv mentioned this pull request Apr 13, 2023
11 tasks
@individual-it
individual-itforce-pushed the backport/36033/stable25 branch from 58fb023 to d905b41CompareApril 17, 2023 09:02
@skjnldsvskjnldsv mentioned this pull request Apr 18, 2023
7 tasks
@blizzzblizzz mentioned this pull request May 16, 2023
@blizzz

Copy link
Copy Markdown
Member

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

@individual-it

Copy link
Copy Markdown
Contributor

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

@individual-it
individual-itforce-pushed the backport/36033/stable25 branch from d905b41 to c2f71bfCompareMay 19, 2023 07:09
@blizzzblizzz added the 3. to review Waiting for reviews label May 23, 2023
@blizzzblizzz mentioned this pull request Jun 12, 2023
Comment threadlib/public/Authentication/Token/IProvider.php Outdated
Comment threadlib/public/Authentication/Token/IProvider.php Outdated
@blizzz

Copy link
Copy Markdown
Member

@individual-it conflicts 😩

individual-itand 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>
@individual-it
individual-itforce-pushed the backport/36033/stable25 branch from 9922fee to 28b9cfbCompareJune 15, 2023 07:36
hopklaas35

This comment was marked as spam.

@individual-it

Copy link
Copy Markdown
Contributor

@blizzz fixed

@blizzz
blizzz disabled auto-merge June 15, 2023 09:02
@blizzz
blizzz merged commit 60bb6da into stable25Jun 15, 2023
@blizzz
blizzz deleted the backport/36033/stable25 branch June 15, 2023 09:02
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@blizzz@individual-it@come-nc@hopklaas35@skjnldsv