server/lib
Christoph Wurst 55b5e13e15
Handle token insert conflicts
Env-based SAML uses the "Apache auth" mechanism to log users in. In this
code path, we first delete all existin auth tokens from the database,
before a new one is inserted. This is problematic for concurrent
requests as they might reach the same code at the same time, hence both
trying to insert a new row wit the same token (the session ID). This
also bubbles up and disables user_saml.

As the token might still be OK (both request will insert the same data),
we can actually just check if the UIDs of the conflict row is the same
as the one we want to insert right now. In that case let's just use the
existing entry and carry on.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-12-02 14:20:51 +01:00
..
composer Add a repair step to clear the projects access cache 2019-08-21 09:16:14 +02:00
l10n [tx-robot] updated from transifex 2019-12-02 02:17:03 +00:00
private Handle token insert conflicts 2019-12-02 14:20:51 +01:00
public set default CSP on NotFoundResponse 2019-09-10 07:23:47 +00:00
autoloader.php move log constants to ILogger 2018-04-26 10:45:52 +02:00
base.php Remove deleted groups from app restrictions fixes #15823 2019-06-27 20:17:50 +02:00
versioncheck.php NC16 is php >= 7.1 2018-12-21 16:04:11 +01:00