[Feature]: OIDC Only Authentication Toggle
Before suggesting
- [x] I searched the existing issues and did not find a similar request.
What problem would this solve?
Users logging onto the site can easily get confused if SSO is enabled and they attempt to log in locally, prompting them sending a message to me able their login not working while they need to log in with OIDC.
How could it work?
Boolean field in the .env file to allow or disallow local database login. This would just forward the user (if not logged in) directly to the OIDC provider.
Alternatives you considered
None at the moment, aside from a custom proxy to the login page.
Would you like to help build it?
I would just love to see it happen
Hey! Thanks again, two good ones in a row!
That makes total sense, and I've had the same confusion reported to me. I'd like to add it too :D
No promises on timing, but it's on the list. Thanks for these!
Hi! I just released version 3.1.1, and this is in :D
Set OIDC_DISABLE_LOCAL_LOGIN=true and the password form is gone, /login goes straight to your provider. It's ignored unless your OIDC config is complete, so a typo can't lock you out, and removing the variable brings the form back if your IdP ever goes down.
Feel free to reopen the issue if you run into any problems!