Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(auth): Allow 2FA challenges for Ephemeral sessions
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen authored and backportbot[bot] committed Mar 18, 2025
commit 90fff7d6cc58f1c02df7462b5743be65bc804291
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

use OC\AppFramework\Utility\ControllerMethodReflector;
use OC\Core\Controller\ClientFlowLoginV2Controller;
use OC\Core\Controller\TwoFactorChallengeController;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\Attribute\PublicPage;
use OCP\AppFramework\Middleware;
Expand Down Expand Up @@ -38,6 +39,10 @@ public function beforeController(Controller $controller, string $methodName) {
return;
}

if ($controller instanceof TwoFactorChallengeController) {
return;
}

$reflectionMethod = new ReflectionMethod($controller, $methodName);
if (!empty($reflectionMethod->getAttributes(PublicPage::class))) {
return;
Expand Down
Loading