feat(admin): remove the SSO link of an account whose provider changed its subject

A sign-in with another subject of the same provider is refused, so an
account whose provider re-issued the subject (a migrated or rebuilt IdP, a
changed sub format) was locked out: editing the email, as the wiki advised,
never touched the stored link. The edit dialog now offers "Remove SSO link"
for other accounts while SSO is set up (DELETE /api/admin/users/:id/sso,
audit admin.user_sso_unlink). The next SSO sign-in links again under the
rules of a first one, so it still needs a verified, not self-set email.
The log line names the remedy, and the wiki tells the two refusals apart.

Fixes #3065
This commit is contained in:
Maurice
2026-11-12 15:39:21 +01:00
parent a3a4f7cf79
commit b53130ca0d
43 changed files with 415 additions and 9 deletions
+5
View File
@@ -1012,6 +1012,11 @@ const admin: TranslationStrings = {
'Vypne pro tohoto uživatele dvoufázové ověření, například po ztrátě telefonu. Bude odhlášen všude a po přihlášení heslem si ho může nastavit znovu.',
'admin.mfa.resetConfirm': 'Vypnout dvoufázové ověření uživatele {name}?',
'admin.mfa.resetDone': 'Dvoufázové ověření bylo resetováno',
'admin.sso.unlink': 'Odebrat propojení SSO',
'admin.sso.unlinkHint':
'Zapomene, které přihlášení u vašeho poskytovatele SSO patří k tomuto účtu, například poté, co poskytovatel změnil ID uživatelů. Další přihlášení přes SSO s potvrzenou e-mailovou adresou účet znovu propojí.',
'admin.sso.unlinkConfirm': 'Odebrat propojení SSO uživatele {name}?',
'admin.sso.unlinkDone': 'Propojení SSO bylo odebráno',
'admin.danger.title': 'Nebezpečná zóna',
'admin.rotateJwt.title': 'Obnovit tajný klíč JWT',
'admin.rotateJwt.hint': 'Vygeneruje nový podpisový klíč JWT. Všechny aktivní relace budou okamžitě zneplatněny.',