Skip to content

Commit a75fdd4

Browse files
authored
Merge pull request #51549 from nextcloud/backport/51544/stable31
[stable31] fix(auth): Allow 2FA challenges for Ephemeral sessions
2 parents 561775d + 90fff7d commit a75fdd4

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\Controller;
1314
use OCP\AppFramework\Http\Attribute\PublicPage;
1415
use OCP\AppFramework\Middleware;
@@ -38,6 +39,10 @@ public function beforeController(Controller $controller, string $methodName) {
3839
return;
3940
}
4041

42+
if ($controller instanceof TwoFactorChallengeController) {
43+
return;
44+
}
45+
4146
$reflectionMethod = new ReflectionMethod($controller, $methodName);
4247
if (!empty($reflectionMethod->getAttributes(PublicPage::class))) {
4348
return;

0 commit comments

Comments
 (0)