Skip to content

Commit 30e367d

Browse files
nickvergessenbackportbot[bot]
authored andcommitted
fix(auth): Allow 2FA challenges for Ephemeral sessions
Signed-off-by: Joas Schilling <[email protected]>
1 parent 5cad74f commit 30e367d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/private/AppFramework/Middleware/FlowV2EphemeralSessionsMiddleware.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
use OC\AppFramework\Utility\ControllerMethodReflector;
1111
use OC\Core\Controller\ClientFlowLoginV2Controller;
12+
use OC\Core\Controller\TwoFactorChallengeController;
1213
use OCP\AppFramework\Middleware;
1314
use OCP\ISession;
1415
use OCP\IUserSession;
@@ -42,6 +43,10 @@ public function beforeController($controller, $methodName) {
4243
return;
4344
}
4445

46+
if ($controller instanceof TwoFactorChallengeController) {
47+
return;
48+
}
49+
4550
if ($this->reflector->hasAnnotation('PublicPage')) {
4651
return;
4752
}

0 commit comments

Comments
 (0)