55b5e13e15
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> |
||
---|---|---|
.. | ||
acceptance | ||
apps | ||
Core | ||
data | ||
docker | ||
lib | ||
objectstore | ||
Settings | ||
travis | ||
ui-regression | ||
apps.php | ||
bootstrap.php | ||
drone-run-integration-tests.sh | ||
drone-wait-objectstore.sh | ||
enable_all.php | ||
karma.config.js | ||
phpunit-autotest-external.xml | ||
phpunit-autotest.xml | ||
preseed-config.php | ||
redis-cluster.config.php | ||
redis.config.php | ||
startsessionlistener.php |