Talk federation authentication

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2022-07-04 17:05:15 +02:00
parent cad745b0d6
commit 7998afe8b3
No known key found for this signature in database
GPG key ID: 74434EFE0D2E2205

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;