Skip to content

Commit

Permalink
Talk federation authentication
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Oct 9, 2023
1 parent cad745b commit 7998afe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -1132,6 +1132,9 @@ public static function handleRequest(): void {
* 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;
Expand Down

0 comments on commit 7998afe

Please sign in to comment.