DVinyl icon indicating copy to clipboard operation
DVinyl copied to clipboard

[Feature]: OIDC Only Authentication Toggle

Open chibashr opened this issue 4 months ago • 2 comments

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

chibashr avatar Aug 03 '26 16:08 chibashr

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!

Kyonew avatar Aug 03 '26 17:08 Kyonew

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!

Kyonew avatar Aug 15 '26 23:08 Kyonew