Merge pull request #33105 from nextcloud/feature/noid/talk-federation-auth

Talk federation authentication
This commit is contained in:
Joas Schilling 2023-10-09 17:06:29 +02:00 committed by GitHub
commit ab15cffa56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;