mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #2702] [CLOSED] feat: Support trusted name header for user signup #21063
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/2702
Author: @sample
Created: 6/1/2024
Status: ❌ Closed
Base:
dev← Head:dev📄 Description
Added support for
WEBUI_AUTH_TRUSTED_NAME_HEADERto allow using a trusted name header during user signup if the header is present. Updated signup logic to use the trusted name when available, while preserving the trusted email as a fallback.Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added support for WEBUI_AUTH_TRUSTED_NAME_HEADER to allow using a trusted name header during user signup if the header is present. Updated signup logic to use the trusted name when available, while preserving the trusted email as a fallback.
Added
WEBUI_AUTH_TRUSTED_NAME_HEADERenvironment variable./signinendpoint to use the trusted name header (WEBUI_AUTH_TRUSTED_NAME_HEADER) if present.Changed
main.pyandauths.pyto include the import of the new configuration variable.signinfunction to handle the new header and use its value for the user's name during signup.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.