Browse Source
prevent infinite redirect loops if the there is no 2fa provider to pass
prevent infinite redirect loops if the there is no 2fa provider to pass
This fixes infinite loops that are caused whenever a user is about to solve a 2FA challenge, but the provider app is disabled at the same time. Since the session value usually indicates that the challenge needs to be solved before we grant access we have to remove that value instead in this special case.pull/1031/head
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
9 changed files with 71 additions and 15 deletions
-
2apps/dav/lib/Connector/Sabre/Auth.php
-
3apps/dav/tests/unit/Connector/Sabre/AuthTest.php
-
10core/Middleware/TwoFactorMiddleware.php
-
18lib/private/Authentication/TwoFactorAuth/Manager.php
-
2lib/private/legacy/api.php
-
2lib/private/legacy/json.php
-
2lib/private/legacy/util.php
-
2tests/Core/Middleware/TwoFactorMiddlewareTest.php
-
45tests/lib/Authentication/TwoFactorAuth/ManagerTest.php
Write
Preview
Loading…
Cancel
Save
Reference in new issue