]> source.dussan.org Git - nextcloud-server.git/commit
fix(Session): avoid race conditions on clustered setups
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Wed, 10 Jul 2024 11:15:20 +0000 (13:15 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Thu, 11 Jul 2024 07:27:29 +0000 (07:27 +0000)
commitf5866137ad30af3070f6d7916ba6ac4385e31220
treeb14692098f5369222da4b64a271203a42531ae9d
parente9b18f78a8c2f207d740b6f8f996aa1d7ed4b42a
fix(Session): avoid race conditions on clustered setups

- re-stablishes old behaviour with cache to return null instead of throwing
  an InvalidTokenException when the token is cached as non-existing
- token invalidation and re-generation are bundled in a DB transaction now

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
lib/private/Authentication/Token/PublicKeyTokenProvider.php
lib/private/Server.php
lib/private/User/Session.php