open-webui / open-webui

User-friendly WebUI for LLMs (Formerly Ollama WebUI)
https://openwebui.com
MIT License
37.32k stars 4.29k forks source link

enh: Allow Only OAuth Signup/Signin #3663

Closed Louden7 closed 1 month ago

Louden7 commented 1 month ago

Describe the solution you'd like With the ability to sign up/in now with OAuth2, the option to only allow OAuth2 and remove the default email and password fields would be a great feature. This could be accomplished by adding a new optional environment variable to "hide" or remove the default email and password fields. The optional environment variable would have a default value of false (not hidden) and only used when ENABLE_OAUTH_SIGNUP=true.

Describe alternatives you've considered Able to disable signups with environment variables but this does not remove the username and password fields resulting in a undesired cluttering when only wanting to use OAuth for logins.

tjbck commented 1 month ago

PR welcome!

Seth-Rothschild commented 1 month ago

@Louden7 I care about this too! If it's ok with you I can put in a PR for it. I have a branch at https://github.com/Seth-Rothschild/open-webui/tree/hide-password-login that adds an environment variable ENABLE_PASSWORD_LOGIN which defaults to true and hides the password form when it's switched to false.

tofasthacker commented 1 month ago

Has there been any progress in merging this to the main branch.

Louden7 commented 1 month ago

Closing with the recent merge #4068.