File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1054,7 +1054,8 @@ public static function handleRequest(): void {
10541054 // Don't try to login when a client is trying to get a OAuth token.
10551055 // OAuth needs to support basic auth too, so the login is not valid
10561056 // inside Nextcloud and the Login exception would ruin it.
1057- if ($ request ->getRawPathInfo () !== '/apps/oauth2/api/v1/token ' ) {
1057+ if ($ request ->getRawPathInfo () !== '/apps/oauth2/api/v1/token '
1058+ && !$ request ->getHeader ('X-Nextcloud-Federation ' )) {
10581059 self ::handleLogin ($ request );
10591060 }
10601061 }
Original file line number Diff line number Diff line change 5757 // side effects in existing apps
5858 OC_App::loadApps ();
5959
60- if (!\OC ::$ server ->getUserSession ()->isLoggedIn ()) {
60+ if (!\OC ::$ server ->getUserSession ()->isLoggedIn () && !\ OC :: $ server -> getRequest ()-> getHeader ( ' X-Nextcloud-Federation ' ) ) {
6161 OC ::handleLogin (\OC ::$ server ->getRequest ());
6262 }
6363
You can’t perform that action at this time.
0 commit comments