nextcloud-server/lib/private/Authentication/Token
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 +07:00
..
INamedToken.php Update php licenses 2021-06-04 22:02:41 +07:00
IProvider.php Fix typos in lib/private subdirectory 2022-07-27 08:52:17 +07:00
IToken.php Update php licenses 2021-06-04 22:02:41 +07:00
IWipeableToken.php Update php licenses 2021-06-04 22:02:41 +07:00
Manager.php Automatically cut the token name on the first level 2022-03-23 21:38:53 +07:00
PublicKeyToken.php Fix ArrayAccess and JsonSerializable return types 2021-11-23 09:28:56 +07:00
PublicKeyTokenMapper.php Remove default token which is deprecated since Nextcloud 13 2021-12-01 18:41:31 +07:00
PublicKeyTokenProvider.php Run session token renewals in a database transaction 2022-10-18 08:28:22 +07:00
RemoteWipe.php Update php licenses 2021-06-04 22:02:41 +07:00
TokenCleanupJob.php Add back TokenCleanupJob to invalidate old temporary tokens 2022-08-25 11:31:21 +07:00