From 7998afe8b380203ff2460abacae2ce47cb06487a Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 4 Jul 2022 17:05:15 +0200 Subject: [PATCH] Talk federation authentication Signed-off-by: Joas Schilling --- lib/base.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/base.php b/lib/base.php index 461ff8997a21f..af41b050f529a 100644 --- a/lib/base.php +++ b/lib/base.php @@ -1132,6 +1132,9 @@ public static function handleRequest(): void { * Check login: apache auth, auth token, basic auth */ public static function handleLogin(OCP\IRequest $request): bool { + if ($request->getHeader('X-Nextcloud-Federation')) { + return false; + } $userSession = Server::get(\OC\User\Session::class); if (OC_User::handleApacheAuth()) { return true;