nextcloud/tests/lib/Authentication
Christoph Wurst c5922e67d3
Run session token renewals in a database transaction
The session token renewal does
1) Read the old token
2) Write a new token
3) Delete the old token

If two processes succeed to read the old token there can be two new tokens because
the queries were not run in a transaction. This is particularly problematic on
clustered DBs where 1) would go to a read node and 2) and 3) go to a write node.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2022-10-18 08:28:22 +02:00
..
Events Format control structures, classes, methods and function 2020-04-10 14:19:56 +02:00
Listeners Fix test class names 2021-11-23 09:28:57 +01:00
Login Fix unit test 2021-04-16 09:47:52 +02:00
LoginCredentials Use PSR logger in authentication 2020-10-12 22:07:04 +02:00
Token Run session token renewals in a database transaction 2022-10-18 08:28:22 +02:00
TwoFactorAuth Fix unit tests 2022-03-23 11:00:34 +01:00