[GH-ISSUE #3663] enh: Allow Only OAuth Signup/Signin #28869

Closed
opened 2026-04-25 03:24:11 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @Louden7 on GitHub (Jul 6, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/3663

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.

Originally created by @Louden7 on GitHub (Jul 6, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/3663 **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.
Author
Owner

@tjbck commented on GitHub (Jul 6, 2024):

PR welcome!

<!-- gh-comment-id:2211630133 --> @tjbck commented on GitHub (Jul 6, 2024): PR welcome!
Author
Owner

@Seth-Rothschild commented on GitHub (Jul 7, 2024):

@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.

<!-- gh-comment-id:2212305932 --> @Seth-Rothschild commented on GitHub (Jul 7, 2024): @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`.
Author
Owner

@ghost commented on GitHub (Jul 18, 2024):

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

<!-- gh-comment-id:2237033275 --> @ghost commented on GitHub (Jul 18, 2024): Has there been any progress in merging this to the main branch.
Author
Owner

@Louden7 commented on GitHub (Jul 25, 2024):

Closing with the recent merge #4068.

<!-- gh-comment-id:2250120339 --> @Louden7 commented on GitHub (Jul 25, 2024): Closing with the recent merge #4068.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#28869