check whether basic auth works for private files

Created on 14 May 2025, 21 days ago

Problem/Motivation

> And the URL for the URI private://my/file.jpg will not authenticate you with basic_auth if I am not mistaken. Or if Ok with basic_auth, we need a dedicated method for other authentication plugins.

Either:

- it doesn't, and we should document that
- it does, and we should change the code

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

4.0

Component

Code

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @joachim
  • 🇬🇧United Kingdom joachim

    Right, so basic_auth works with jsonapi routes because jsonapi module does this:

        $routes->addOptions(['_auth' => $this->providerIds]);
    

    and so basic auth won't work for private files OOTB.

    But we could make it do that -- we could add code to the server module which enables basic_auth for files if the module is enabled.

Production build 0.71.5 2024