Replies: 1 comment
|
Built, in #849. All three points, plus the groundwork for the fourth.
The open questions above, decided:
Accounts without a password are an explicit One bug found on the way, and it predates all of this: Follow-up on the remaining part of #654: #848, multiple OIDC providers, where the account-per-provider question is now decided. |
Uh oh!
There was an error while loading. Please reload this page.
Split out of #654, where the switch in the title (
OIDC_ALLOW_SIGNUP, shipped in v2.39.0) is done but three further wishes from @Kyrodan are not. They belong together because each one is a half-measure without the others.Today Yuvomi always keeps a second way in. Even with SSO configured and account creation switched off, the login form stays, password reset stays, and every account carries a password hash. For a household whose identity provider is the single source of truth, that is one door too many.
1. Create an account without a password.
POST /api/v1/auth/usersrequires a password of at least 8 characters, so an admin preparing an account for an SSO user has to invent one - and that invented password stays a working credential. Accounts provisioned through SSO already avoid this: they carry the$oidc$sentinel instead of a hash, which no password can ever match. The admin panel needs the same option.2. Turn built-in authentication off entirely. With SSO as the only way in, the login form should be the SSO button and nothing else - no username field, no password field.
3. Disable password reset along with it. Once nobody has a password, "forgot password" is a dead end at best. It should disappear with the form rather than stay as a route that can still send mail.
A related request from the same thread: members who never sign in but can still be assigned tasks (younger children, grandparents), with someone else completing tasks on their behalf. That is not possible today - every family member is a full account with a password - and point 1 is the groundwork for it, so it is worth deciding together with the rest.
Open questions before any of this gets built:
.envchange plus restart may be the honest answer.Related: #654 (the shipped switch).
All reactions