mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-12 01:54:38 -05:00
[PR #19113] [MERGED] Feat: optionally disable password login endpoints #11891
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/19113
Author: @Classic298
Created: 11/11/2025
Status: ✅ Merged
Merged: 11/11/2025
Merged by: @tjbck
Base:
dev← Head:ENABLE_PASSWORD_AUTH📝 Commits (7)
7ee9b00Implement message cleaning before API call070a6c6Filter out empty assistant messages before cleaning7728273Update catalan translation.json (#29)1d5c3aeMerge branch 'dev' into ENABLE_PASSWORD_AUTHa00de10Update main.py57db444Update auths.py22df2adUpdate Chat.svelte📊 Changes
2 files changed (+22 additions, -5 deletions)
View changed files
📝
backend/open_webui/config.py(+4 -0)📝
backend/open_webui/routers/auths.py(+18 -5)📄 Description
devbranch. Not targeting thedevbranch will lead to immediate closure of the PR.Changelog Entry
Description
Fixes a security weakness where the password based login API endpoint remains enabled even if disabling ENABLE_LOGIN_FORM as a fallback login method in case SSO does not work. This PR introduces the
ENABLE_PASSWORD_AUTHenvironment variable that, when set to False with SSO enabled, enforces SSO-only authentication by rejecting password-based login attempts on the /signin and /ldap endpoints.Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.