Repository navigation
fix(settings): tell an SSO account its password lives at the identity provider (#850) - #852
Merged
alex-dembele merged 1 commit intoOct 2, 2026
Conversation
… provider (#850) The Change password card offered its three fields to an account with no password in OpenRisk, which only learned so after submitting (409 no_local_password). The card now reads has_password from /auth/me and shows the existing managed-by-IdP message up front, a skeleton while it finds out, and the old form plus the server's correction when it cannot tell. Signed-off-by: alex-dembele <alexandredembele16@gmail.com>
This was referenced Sep 30, 2026
Base automatically changed from
754-securityauth-disabling-mfa-does-not-re-verify-the-password
to
master
October 1, 2026 12:21
alex-dembele
deleted the
850-bugsettings-an-sso-account-is-offered-a-change-password-form-it-cannot-use
branch
October 2, 2026 12:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #850
An account that signs in through an identity provider has no password in OpenRisk. The Change password card used to show it three fields that could only fail: it found out after submitting, from a 409
no_local_password. The card now readshas_passwordfrom/auth/mebefore rendering anything.Behaviour
/auth/mehas_password: falseaccountSecurity.managedByIdp(FR/EN); no fields, no button, no show/hide togglehas_password: trueChanges:
useHasLocalPassword()(new hook), andfetchHasLocalPassword()inauthService.ts, whichfetchDisableMFAProoffrom #754 now reuses. No new i18n key, so FR/EN parity is untouched.Verification
Live (branch server on PostgreSQL 16 with a fresh database, real React app on Vite, Chromium):
users.password = '': the card shows "Ce compte se connecte via votre fournisseur d'identité : son mot de passe se change chez lui."; 0 fields, 0 buttons, 0 requests to/auth/password/change..playwright-mcp/850-sso-card-light.png,850-sso-card-dark.png.Not done
auth + settings + sharedsuites had 2 failures whose names I didn't capture. The next 7 runs (including 2 undertscload) were all green, and the 7 card tests passed 3 times out of 3. It looks like a pre-existing timing flake, but I couldn't reproduce or name it.🤖 Generated with Claude Code