mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-07 09:19:06 -05:00
[GH-ISSUE #24650] feat: Add Two-Factor Authentication (2FA) with Google Authenticator (TOTP) #91111
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?
Originally created by @sharyuke on GitHub (May 13, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24650
Summary
First of all, thank you for building such an excellent self-hosted AI platform. Open WebUI is incredibly feature-rich and a joy to use. I truly appreciate all the work that goes into this project.
Motivation
While Open WebUI offers robust security features like RBAC, LDAP integration, and SSO via OAuth/OIDC, one critical layer of account protection is currently missing: Two-Factor Authentication (2FA).
Currently, an account is protected solely by a password. In a self-hosted environment exposed to the internet (even behind a reverse proxy), account credentials can be vulnerable to brute-force or credential-stuffing attacks. If a password is compromised or leaked, there is no second layer of defense to prevent unauthorized access.
Proposed Solution
Implement Time-based One-Time Password (TOTP) 2FA, compatible with Google Authenticator and similar authenticator apps (Authy, 1Password, Bitwarden, etc.).
Suggested Implementation Details
Alternatives Considered
TOTP strikes the best balance between security and accessibility — users only need a free authenticator app on their phone.
Use Cases
Priority
This would be a significant security improvement for production deployments. Even a basic implementation (per-user opt-in TOTP) would greatly enhance account security without requiring major architectural changes.
Thank you again for this amazing project. I look forward to seeing how it continues to evolve.
@owui-terminator[bot] commented on GitHub (May 13, 2026):
🔍 Related Issues Found
I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions:
This is essentially the same request: adding TOTP-based 2FA/MFA for Open WebUI accounts, with the same motivation of protecting internet-exposed self-hosted instances. It even mentions the lack of a TOTP setting and asks for authenticator-app support.
by ghost
💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead.
This comment was generated automatically. React with 👍 if helpful, 👎 if not.