[stable26] invalidate existing tokens when deleting an oauth client#37230
[stable26] invalidate existing tokens when deleting an oauth client#37230
Conversation
| public function deleteClient(int $id): JSONResponse { | ||
| $client = $this->clientMapper->getByUid($id); | ||
|
|
||
| $this->userManager->callForAllUsers(function (IUser $user) use ($client) { |
There was a problem hiding this comment.
should be run for known users, not all users, and not in user facing requests as it may take ages
There was a problem hiding this comment.
The same thing was merged in master and stable24 already :-/
Why would it take ages?
There was a problem hiding this comment.
because it will ask all connected backends to all users. not an issue on small local instance, but a factor on big setups.
There was a problem hiding this comment.
@blizzz do you mean using callForSeenUsers() instead of callForAllUsers()?
There was a problem hiding this comment.
@blizzz do you mean using
callForSeenUsers()instead ofcallForAllUsers()?
yes, and ideally it runs through background jobs only
There was a problem hiding this comment.
There was a problem hiding this comment.
Depending on the instance size it may cycle over x thousands of users.
|
moving to 26.0.1 (as final RC3 is due) |
55e0975 to
e25b640
Compare
|
This will need to be backported to stable25, and the callForSeenUser change needs to be ported to master as well in a smaller PR |
|
CI is failing, at least PHPUnit / phpunit-oci (8.2) might be related |
|
→ 26.0.3 |
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>
e25b640 to
cb005f6
Compare
Signed-off-by: Artur Neumann <artur@jankaritech.com>
|
@blizzz unit tests fixed, also for the other repos |
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
backport of #36033