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;