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 committed Mar 18, 2025
commit c9aea8ffdfedab589779018e5982032671431118
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