mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Talk federation authentication
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
cad745b0d6
commit
7998afe8b3
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue