mirror of
https://github.com/nextcloud/server.git
synced 2026-05-20 17:15:46 -04:00
fix(auth): Allow 2FA challenges for Ephemeral sessions
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
e9d931a04a
commit
1ed2ee76b6
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