summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2023-10-09 17:06:29 +0200
committerGitHub <noreply@github.com>2023-10-09 17:06:29 +0200
commitab15cffa56418535261b590a6790dbd5a885db62 (patch)
treee076c2c5ed459f47b787245f90e10081fb8e4f81 /lib
parent4fd04080886163124b29101c2ac8021a93636cf5 (diff)
parent7998afe8b380203ff2460abacae2ce47cb06487a (diff)
downloadnextcloud-server-ab15cffa56418535261b590a6790dbd5a885db62.tar.gz
nextcloud-server-ab15cffa56418535261b590a6790dbd5a885db62.zip
Merge pull request #33105 from nextcloud/feature/noid/talk-federation-auth
Talk federation authentication
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index 461ff8997a2..af41b050f52 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -1132,6 +1132,9 @@ class OC {
* 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;