Skip to content

fix: add header to prevent the creation of new users in proxy authentication#5892

Open
ArielLeyva wants to merge 2 commits intofilebrowser:masterfrom
ArielLeyva:fix/3900-Proxy-Auth-creates-user-even-if-Allow-users-to-signup-is-disabled
Open

fix: add header to prevent the creation of new users in proxy authentication#5892
ArielLeyva wants to merge 2 commits intofilebrowser:masterfrom
ArielLeyva:fix/3900-Proxy-Auth-creates-user-even-if-Allow-users-to-signup-is-disabled

Conversation

@ArielLeyva
Copy link
Copy Markdown
Contributor

Description

This PR allows a header to be sent in proxy authentication so that user creation can be prevented if the username sent by the proxy does not exist in the database.

The proxy can send the X-Auth-No-Create-User header with the value true to prevent the user from being created if it does not exist in the database; if the user does not exist, filebrowser authentication is not passed.

The explanation of this behavior and the use of the X-Auth-No-Create-User header was added to the documentation.

Additional Information

Closes #3900

Checklist

Before submitting your PR, please indicate which issues are either fixed or closed by this PR. See GitHub Help: Closing issues using keywords.

  • I am aware the project is currently in maintenance-only mode. See README
  • I am aware that translations MUST be made through Transifex and that this PR is NOT a translation update
  • I am making a PR against the master branch.
  • I am sure File Browser can be successfully built. See builds and development.

@ArielLeyva ArielLeyva requested a review from a team as a code owner April 5, 2026 09:11
@ArielLeyva ArielLeyva changed the title fix: add header to prevent the creation of new users in proxy authentication. fix: add header to prevent the creation of new users in proxy authentication Apr 5, 2026
@hacdias
Copy link
Copy Markdown
Member

hacdias commented Apr 11, 2026

@ArielLeyva thanks for this. Can we also make it clear that "Allow users to signup" doesn't apply to Proxy auth?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Proxy Auth creates user even if "Allow users to signup" is disabled

2 participants