Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Talk federation authentication
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Oct 9, 2023
commit 7998afe8b380203ff2460abacae2ce47cb06487a
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