mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
fix(auth): Allow 2FA challenges for Ephemeral sessions
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
561775d2fe
commit
90fff7d6cc
1 changed files with 5 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ namespace OC\AppFramework\Middleware;
|
|||
|
||||
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;
|
||||
|
|
@ -38,6 +39,10 @@ class FlowV2EphemeralSessionsMiddleware extends Middleware {
|
|||
return;
|
||||
}
|
||||
|
||||
if ($controller instanceof TwoFactorChallengeController) {
|
||||
return;
|
||||
}
|
||||
|
||||
$reflectionMethod = new ReflectionMethod($controller, $methodName);
|
||||
if (!empty($reflectionMethod->getAttributes(PublicPage::class))) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue