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_HEADER` configuration.
- Enhanced /signin endpoint to handle trusted name header.
- Updated main.py and auths.py to include the new header in the config imports.
Pull Request Checklist
Before submitting, make sure you've checked the following:
Target branch: Please verify that the pull request targets the dev branch.
Description: Provide a concise description of the changes made in this pull request.
Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
Testing: Have you written and run sufficient tests for validating the changes?
Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
Label: To cleary categorize this pull request, assign a relevant label to the pull request title, using one of the following:
BREAKING CHANGE: Significant changes that may affect compatibility
build: Changes that affect the build system or external dependencies
ci: Changes to our continuous integration processes or workflows
chore: Refactor, cleanup, or other non-functional code changes
docs: Documentation update or addition
feat: Introduces a new feature or enhancement to the codebase
fix: Bug fix or error correction
i18n: Internationalization or localization changes
perf: Performance improvement
refactor: Code restructuring for better maintainability, readability, or scalability
style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)
test: Adding missing tests or correcting existing tests
WIP: Work in progress, a temporary label for incomplete or ongoing work
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
Added support for the WEBUI_AUTH_TRUSTED_NAME_HEADER environment variable.
Enhanced user signup logic in the /signin endpoint to use the trusted name header (WEBUI_AUTH_TRUSTED_NAME_HEADER) if present.
Changed
Updated main.py and auths.py to include the import of the new configuration variable.
Modified the signin function 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.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/2701
**Author:** [@sample](https://github.com/sample)
**Created:** 6/1/2024
**Status:** ❌ Closed
**Base:** `main` ← **Head:** `feat/trusted-name-header`
---
### 📝 Commits (10+)
- [`5d38427`](https://github.com/open-webui/open-webui/commit/5d384272b797b7ea60b625b23db74efc1939ac53) Merge pull request #2433 from kroonen/dev
- [`b089986`](https://github.com/open-webui/open-webui/commit/b089986248b548f3ef918c2c04fd85e6fece9fda) Merge pull request #2432 from cheahjs/feat/a1111-integration-test
- [`6d23799`](https://github.com/open-webui/open-webui/commit/6d237999dc1acb0a1d254b2934201402a4eada13) fix: formatting
- [`3aa201b`](https://github.com/open-webui/open-webui/commit/3aa201b7d5c9d567ca0f7c09ebb338d937e12191) Merge pull request #2416 from Yanyutin753/tem-trans
- [`928b791`](https://github.com/open-webui/open-webui/commit/928b7919503575b65f0118d4ffa64343b7438ea9) Merge pull request #2454 from AlyMobarak/patch-1
- [`3878a09`](https://github.com/open-webui/open-webui/commit/3878a09095989453b173923bb7071035e5979cb7) Update languages.json
- [`2e16fe9`](https://github.com/open-webui/open-webui/commit/2e16fe9f85e4d3932754cd863f77b432ffa6d8db) Update languages.json
- [`34253d2`](https://github.com/open-webui/open-webui/commit/34253d216a0a5044b2e14718bdc9d2a4dcbd9d21) Merge pull request #2469 from cheahjs/refac/consolidate-chat-into-single-component
- [`247af33`](https://github.com/open-webui/open-webui/commit/247af333b600e00921d9653a742c81b13ccd84b5) chore: disable dependabot
- [`7ccef3e`](https://github.com/open-webui/open-webui/commit/7ccef3e77aee8282b53a413c3d213053607a8f79) Merge remote-tracking branch 'upstream/dev' into feat/model-config
### 📊 Changes
**201 files changed** (+18485 additions, -10785 deletions)
<details>
<summary>View changed files</summary>
📝 `.env.example` (+1 -5)
📝 `.github/dependabot.disabled` (+0 -0)
📝 `.github/workflows/build-release.yml` (+3 -3)
➕ `.github/workflows/deploy-to-hf-spaces.yml` (+59 -0)
📝 `.github/workflows/docker-build.yaml` (+8 -2)
📝 `.github/workflows/format-backend.yaml` (+1 -1)
📝 `.github/workflows/format-build-frontend.yaml` (+1 -1)
📝 `.github/workflows/integration-test.yml` (+6 -2)
➕ `.github/workflows/release-pypi.yml` (+32 -0)
📝 `Dockerfile` (+12 -10)
📝 `README.md` (+13 -69)
➖ `backend/apps/litellm/main.py` (+0 -379)
📝 `backend/apps/ollama/main.py` (+192 -34)
📝 `backend/apps/openai/main.py` (+121 -42)
📝 `backend/apps/rag/main.py` (+73 -18)
➕ `backend/apps/rag/search/brave.py` (+37 -0)
➕ `backend/apps/rag/search/google_pse.py` (+45 -0)
➕ `backend/apps/rag/search/main.py` (+9 -0)
➕ `backend/apps/rag/search/searxng.py` (+44 -0)
➕ `backend/apps/rag/search/serper.py` (+39 -0)
_...and 80 more files_
</details>
### 📄 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_HEADER` configuration.
- Enhanced /signin endpoint to handle trusted name header.
- Updated main.py and auths.py to include the new header in the config imports.
# Pull Request Checklist
**Before submitting, make sure you've checked the following:**
- [x] **Target branch:** Please verify that the pull request targets the `dev` branch.
- [x] **Description:** Provide a concise description of the changes made in this pull request.
- [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description.
- [ ] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources?
- [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation?
- [ ] **Testing:** Have you written and run sufficient tests for validating the changes?
- [x] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
- [ ] **Label:** To cleary categorize this pull request, assign a relevant label to the pull request title, using one of the following:
- **BREAKING CHANGE**: Significant changes that may affect compatibility
- **build**: Changes that affect the build system or external dependencies
- **ci**: Changes to our continuous integration processes or workflows
- **chore**: Refactor, cleanup, or other non-functional code changes
- **docs**: Documentation update or addition
- **feat**: Introduces a new feature or enhancement to the codebase
- **fix**: Bug fix or error correction
- **i18n**: Internationalization or localization changes
- **perf**: Performance improvement
- **refactor**: Code restructuring for better maintainability, readability, or scalability
- **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)
- **test**: Adding missing tests or correcting existing tests
- **WIP**: Work in progress, a temporary label for incomplete or ongoing work
# 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
- Added support for the `WEBUI_AUTH_TRUSTED_NAME_HEADER` environment variable.
- Enhanced user signup logic in the `/signin` endpoint to use the trusted name header (`WEBUI_AUTH_TRUSTED_NAME_HEADER`) if present.
### Changed
- Updated `main.py` and `auths.py` to include the import of the new configuration variable.
- Modified the `signin` function to handle the new header and use its value for the user's name during signup.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/2701
Author: @sample
Created: 6/1/2024
Status: ❌ Closed
Base:
main← Head:feat/trusted-name-header📝 Commits (10+)
5d38427Merge pull request #2433 from kroonen/devb089986Merge pull request #2432 from cheahjs/feat/a1111-integration-test6d23799fix: formatting3aa201bMerge pull request #2416 from Yanyutin753/tem-trans928b791Merge pull request #2454 from AlyMobarak/patch-13878a09Update languages.json2e16fe9Update languages.json34253d2Merge pull request #2469 from cheahjs/refac/consolidate-chat-into-single-component247af33chore: disable dependabot7ccef3eMerge remote-tracking branch 'upstream/dev' into feat/model-config📊 Changes
201 files changed (+18485 additions, -10785 deletions)
View changed files
📝
.env.example(+1 -5)📝
.github/dependabot.disabled(+0 -0)📝
.github/workflows/build-release.yml(+3 -3)➕
.github/workflows/deploy-to-hf-spaces.yml(+59 -0)📝
.github/workflows/docker-build.yaml(+8 -2)📝
.github/workflows/format-backend.yaml(+1 -1)📝
.github/workflows/format-build-frontend.yaml(+1 -1)📝
.github/workflows/integration-test.yml(+6 -2)➕
.github/workflows/release-pypi.yml(+32 -0)📝
Dockerfile(+12 -10)📝
README.md(+13 -69)➖
backend/apps/litellm/main.py(+0 -379)📝
backend/apps/ollama/main.py(+192 -34)📝
backend/apps/openai/main.py(+121 -42)📝
backend/apps/rag/main.py(+73 -18)➕
backend/apps/rag/search/brave.py(+37 -0)➕
backend/apps/rag/search/google_pse.py(+45 -0)➕
backend/apps/rag/search/main.py(+9 -0)➕
backend/apps/rag/search/searxng.py(+44 -0)➕
backend/apps/rag/search/serper.py(+39 -0)...and 80 more files
📄 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.