mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 15:23:29 +00:00
fix(auth): link single sign-on to an existing account only after its own sign-in
The SSO callback bound a verified provider email to the local account with the same address on the spot. The local address is not verified: anyone could register with it, or type it into their profile, and the SSO user then landed in an account the other person still held the password to. The callback now links nothing. It records the link it would make in a sealed, ten-minute, HttpOnly cookie and sends the browser to the sign-in page, and the link is made only when that browser then signs in to that same account with its password (and second factor) or passkey. Under an SSO-only policy the password form opens for exactly that account. The native sign-in answers oidc_link_required; the link is confirmed once on the web. Moving an account to a new email address now also needs a fresh proof: a sign-in or second factor in the last five minutes, or the current password sent alongside the change. Without it the address is left as it was and reported in rejectedFields; the rest of the save still lands.
This commit is contained in:
1 parent
7b5bc130d8
commit
8da7583ec6
27 files changed
+878
-76
No files matched your search
+12
-2
@@ -128,6 +128,12 @@
|
||||
"emailInUse": "Diese E-Mail-Adresse wird bereits verwendet.",
|
||||
"emailRateLimited": "Zu viele Änderungen der E-Mail-Adresse. Versuche es später erneut."
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"reproof": {
|
||||
"required": "Bestätige dein aktuelles Passwort, um das zu ändern.",
|
||||
"failed": "Die Bestätigung ist fehlgeschlagen. Es wurde nichts geändert."
|
||||
}
|
||||
}
|
||||
},
|
||||
"doctorReport": {
|
||||
@@ -439,6 +445,7 @@
|
||||
"errorNoEmail": "Dein Identitätsanbieter hat keine bestätigte E-Mail-Adresse übermittelt.",
|
||||
"errorEmailUnverified": "Dein Identitätsanbieter hat deine E-Mail-Adresse nicht als bestätigt markiert.",
|
||||
"errorIdentityConflict": "Diese E-Mail-Adresse gehört zu einem Konto, das bereits mit einer anderen SSO-Identität verknüpft ist.",
|
||||
"errorLinkRequired": "Hier gibt es bereits ein Konto mit dieser E-Mail-Adresse. Melde dich einmal mit seinem Passwort oder Passkey an, um es mit Single Sign-on zu verbinden.",
|
||||
"errorRegistrationDisabled": "Kein Konto passt zu dieser Identität, und neue Registrierungen sind derzeit geschlossen.",
|
||||
"errorFailed": "Single Sign-On ist fehlgeschlagen. Bitte versuche es erneut."
|
||||
},
|
||||
@@ -5553,7 +5560,9 @@
|
||||
"invalidFormat": "Das ist nicht in einer Form geschrieben, die dieses Feld lesen kann.",
|
||||
"invalidType": "Der Wert kam nicht in einer Form an, die dieses Feld speichern kann.",
|
||||
"rateLimited": "Zu oft geändert. Warte kurz und versuche es dann erneut.",
|
||||
"other": "Dieser Wert wurde nicht angenommen. Bitte prüfen und erneut versuchen."
|
||||
"other": "Dieser Wert wurde nicht angenommen. Bitte prüfen und erneut versuchen.",
|
||||
"reproofRequired": "Gib dein aktuelles Passwort ein, um die E-Mail-Adresse zu ändern.",
|
||||
"reproofFailed": "Das Passwort stimmt nicht, die E-Mail-Adresse wurde nicht geändert."
|
||||
},
|
||||
"avatar": {
|
||||
"title": "Profilfoto",
|
||||
@@ -6700,7 +6709,8 @@
|
||||
"showChecklist": "Checkliste wieder anzeigen",
|
||||
"checklistShown": "Die Checkliste ist wieder auf dem Dashboard.",
|
||||
"checklistNothingHidden": "Die Checkliste war nicht ausgeblendet; sie öffnet sich auf dem Dashboard."
|
||||
}
|
||||
},
|
||||
"emailChangePassword": "Aktuelles Passwort (nötig, um die E-Mail-Adresse zu ändern)"
|
||||
},
|
||||
"admin": {
|
||||
"title": "Administration",
|
||||
|
||||
+12
-2
@@ -128,6 +128,12 @@
|
||||
"emailInUse": "This email address is already in use.",
|
||||
"emailRateLimited": "Too many email-address changes. Try again later."
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"reproof": {
|
||||
"required": "Confirm your current password to change this.",
|
||||
"failed": "That did not verify. Nothing was changed."
|
||||
}
|
||||
}
|
||||
},
|
||||
"doctorReport": {
|
||||
@@ -439,6 +445,7 @@
|
||||
"errorNoEmail": "Your identity provider did not share a verified email address.",
|
||||
"errorEmailUnverified": "Your identity provider did not mark your email address as verified.",
|
||||
"errorIdentityConflict": "That email address belongs to an account that is already linked to a different SSO identity.",
|
||||
"errorLinkRequired": "An account with this email address already exists here. Sign in to it once with its password or passkey to connect it to single sign-on.",
|
||||
"errorRegistrationDisabled": "No account matches that identity, and new sign-ups are currently closed.",
|
||||
"errorFailed": "Single sign-on failed. Please try again."
|
||||
},
|
||||
@@ -5553,7 +5560,9 @@
|
||||
"invalidFormat": "That is not written in a form this field can read.",
|
||||
"invalidType": "That value did not arrive in a form this field can store.",
|
||||
"rateLimited": "Changed too often. Wait a little and try again.",
|
||||
"other": "This value was not accepted. Check it and try again."
|
||||
"other": "This value was not accepted. Check it and try again.",
|
||||
"reproofRequired": "Enter your current password to change the email address.",
|
||||
"reproofFailed": "That password is not correct, so the email address was not changed."
|
||||
},
|
||||
"avatar": {
|
||||
"title": "Profile photo",
|
||||
@@ -6700,7 +6709,8 @@
|
||||
"showChecklist": "Show the checklist again",
|
||||
"checklistShown": "The checklist is back on the dashboard.",
|
||||
"checklistNothingHidden": "The checklist was not hidden; it opens on the dashboard."
|
||||
}
|
||||
},
|
||||
"emailChangePassword": "Current password (needed to change the email address)"
|
||||
},
|
||||
"admin": {
|
||||
"title": "Administration",
|
||||
|
||||
+12
-2
@@ -128,6 +128,12 @@
|
||||
"emailInUse": "Esta dirección de correo ya está en uso.",
|
||||
"emailRateLimited": "Demasiados cambios de dirección de correo. Inténtalo más tarde."
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"reproof": {
|
||||
"required": "Confirma tu contraseña actual para cambiar esto.",
|
||||
"failed": "La verificación ha fallado. No se ha cambiado nada."
|
||||
}
|
||||
}
|
||||
},
|
||||
"doctorReport": {
|
||||
@@ -439,6 +445,7 @@
|
||||
"errorNoEmail": "Tu proveedor de identidad no compartió un correo electrónico verificado.",
|
||||
"errorEmailUnverified": "Tu proveedor de identidad no marcó tu correo electrónico como verificado.",
|
||||
"errorIdentityConflict": "Ese correo electrónico pertenece a una cuenta que ya está vinculada a otra identidad SSO.",
|
||||
"errorLinkRequired": "Ya existe aquí una cuenta con esta dirección de correo. Inicia sesión en ella una vez con su contraseña o llave de acceso para conectarla al inicio de sesión único.",
|
||||
"errorRegistrationDisabled": "Ninguna cuenta coincide con esa identidad y los nuevos registros están cerrados actualmente.",
|
||||
"errorFailed": "El inicio de sesión único falló. Inténtalo de nuevo."
|
||||
},
|
||||
@@ -5553,7 +5560,9 @@
|
||||
"invalidFormat": "Eso no está escrito en un formato que este campo pueda leer.",
|
||||
"invalidType": "El valor no llegó en un formato que este campo pueda guardar.",
|
||||
"rateLimited": "Se ha cambiado demasiadas veces. Espera un poco e inténtalo de nuevo.",
|
||||
"other": "No se aceptó este valor. Revísalo e inténtalo de nuevo."
|
||||
"other": "No se aceptó este valor. Revísalo e inténtalo de nuevo.",
|
||||
"reproofRequired": "Introduce tu contraseña actual para cambiar la dirección de correo.",
|
||||
"reproofFailed": "La contraseña no es correcta, así que la dirección de correo no se ha cambiado."
|
||||
},
|
||||
"avatar": {
|
||||
"title": "Foto de perfil",
|
||||
@@ -6700,7 +6709,8 @@
|
||||
"showChecklist": "Mostrar la lista de nuevo",
|
||||
"checklistShown": "La lista vuelve a estar en el panel.",
|
||||
"checklistNothingHidden": "La lista no estaba oculta; se abre en el panel."
|
||||
}
|
||||
},
|
||||
"emailChangePassword": "Contraseña actual (necesaria para cambiar la dirección de correo)"
|
||||
},
|
||||
"admin": {
|
||||
"title": "Administration",
|
||||
|
||||
+12
-2
@@ -128,6 +128,12 @@
|
||||
"emailInUse": "Cette adresse e-mail est déjà utilisée.",
|
||||
"emailRateLimited": "Trop de changements d'adresse e-mail. Réessayez plus tard."
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"reproof": {
|
||||
"required": "Confirmez votre mot de passe actuel pour modifier ceci.",
|
||||
"failed": "La vérification a échoué. Rien n'a été modifié."
|
||||
}
|
||||
}
|
||||
},
|
||||
"doctorReport": {
|
||||
@@ -439,6 +445,7 @@
|
||||
"errorNoEmail": "Votre fournisseur d'identité n'a pas transmis d'adresse e-mail vérifiée.",
|
||||
"errorEmailUnverified": "Votre fournisseur d'identité n'a pas marqué votre adresse e-mail comme vérifiée.",
|
||||
"errorIdentityConflict": "Cette adresse e-mail appartient à un compte déjà lié à une autre identité SSO.",
|
||||
"errorLinkRequired": "Un compte avec cette adresse e-mail existe déjà ici. Connectez-vous-y une fois avec son mot de passe ou sa clé d'accès pour le relier à l'authentification unique.",
|
||||
"errorRegistrationDisabled": "Aucun compte ne correspond à cette identité et les nouvelles inscriptions sont actuellement fermées.",
|
||||
"errorFailed": "L'authentification unique a échoué. Veuillez réessayer."
|
||||
},
|
||||
@@ -5553,7 +5560,9 @@
|
||||
"invalidFormat": "Ce n'est pas écrit dans un format que ce champ peut lire.",
|
||||
"invalidType": "La valeur n'est pas arrivée dans un format que ce champ peut enregistrer.",
|
||||
"rateLimited": "Modifié trop souvent. Patientez un peu et réessayez.",
|
||||
"other": "Cette valeur n'a pas été acceptée. Vérifiez-la et réessayez."
|
||||
"other": "Cette valeur n'a pas été acceptée. Vérifiez-la et réessayez.",
|
||||
"reproofRequired": "Saisissez votre mot de passe actuel pour changer l'adresse e-mail.",
|
||||
"reproofFailed": "Ce mot de passe est incorrect, l'adresse e-mail n'a donc pas été modifiée."
|
||||
},
|
||||
"avatar": {
|
||||
"title": "Photo de profil",
|
||||
@@ -6700,7 +6709,8 @@
|
||||
"showChecklist": "Réafficher la liste de départ",
|
||||
"checklistShown": "La liste de départ est de retour sur le tableau de bord.",
|
||||
"checklistNothingHidden": "La liste n'était pas masquée ; elle s'ouvre sur le tableau de bord."
|
||||
}
|
||||
},
|
||||
"emailChangePassword": "Mot de passe actuel (nécessaire pour changer l'adresse e-mail)"
|
||||
},
|
||||
"admin": {
|
||||
"title": "Administration",
|
||||
|
||||
+12
-2
@@ -128,6 +128,12 @@
|
||||
"emailInUse": "Questo indirizzo email è già in uso.",
|
||||
"emailRateLimited": "Troppi cambi di indirizzo email. Riprova più tardi."
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"reproof": {
|
||||
"required": "Conferma la password attuale per modificarlo.",
|
||||
"failed": "La verifica non è riuscita. Non è stato modificato nulla."
|
||||
}
|
||||
}
|
||||
},
|
||||
"doctorReport": {
|
||||
@@ -439,6 +445,7 @@
|
||||
"errorNoEmail": "Il tuo provider di identità non ha condiviso un indirizzo email verificato.",
|
||||
"errorEmailUnverified": "Il tuo provider di identità non ha contrassegnato il tuo indirizzo email come verificato.",
|
||||
"errorIdentityConflict": "Questo indirizzo email appartiene a un account già collegato a un'altra identità SSO.",
|
||||
"errorLinkRequired": "Esiste già un account con questo indirizzo email. Accedi una volta con la sua password o passkey per collegarlo al single sign-on.",
|
||||
"errorRegistrationDisabled": "Nessun account corrisponde a questa identità e le nuove registrazioni sono attualmente chiuse.",
|
||||
"errorFailed": "L'accesso Single Sign-On non è riuscito. Riprova."
|
||||
},
|
||||
@@ -5553,7 +5560,9 @@
|
||||
"invalidFormat": "Non è scritto in un formato che questo campo possa leggere.",
|
||||
"invalidType": "Il valore non è arrivato in un formato che questo campo possa salvare.",
|
||||
"rateLimited": "Modificato troppe volte. Aspetta un momento e riprova.",
|
||||
"other": "Questo valore non è stato accettato. Controllalo e riprova."
|
||||
"other": "Questo valore non è stato accettato. Controllalo e riprova.",
|
||||
"reproofRequired": "Inserisci la password attuale per cambiare l'indirizzo email.",
|
||||
"reproofFailed": "La password non è corretta, quindi l'indirizzo email non è stato cambiato."
|
||||
},
|
||||
"avatar": {
|
||||
"title": "Foto del profilo",
|
||||
@@ -6700,7 +6709,8 @@
|
||||
"showChecklist": "Mostra di nuovo la lista",
|
||||
"checklistShown": "La lista è di nuovo nella dashboard.",
|
||||
"checklistNothingHidden": "La lista non era nascosta; si apre nella dashboard."
|
||||
}
|
||||
},
|
||||
"emailChangePassword": "Password attuale (necessaria per cambiare l'indirizzo email)"
|
||||
},
|
||||
"admin": {
|
||||
"title": "Administration",
|
||||
|
||||
+12
-2
@@ -128,6 +128,12 @@
|
||||
"emailInUse": "이미 사용 중인 이메일 주소예요.",
|
||||
"emailRateLimited": "이메일 주소를 너무 자주 변경했어요. 잠시 후 다시 시도해 주세요."
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"reproof": {
|
||||
"required": "변경하려면 현재 비밀번호를 확인하세요.",
|
||||
"failed": "확인에 실패했습니다. 아무것도 변경되지 않았습니다."
|
||||
}
|
||||
}
|
||||
},
|
||||
"doctorReport": {
|
||||
@@ -439,6 +445,7 @@
|
||||
"errorNoEmail": "제공자가 인증된 이메일 주소를 전달하지 않았어요.",
|
||||
"errorEmailUnverified": "제공자가 이메일 주소를 인증됨으로 표시하지 않았어요.",
|
||||
"errorIdentityConflict": "그 이메일 주소는 다른 SSO 계정에 이미 연결돼 있어요.",
|
||||
"errorLinkRequired": "이 이메일 주소를 사용하는 계정이 이미 있습니다. 싱글 사인온에 연결하려면 해당 계정의 비밀번호나 패스키로 한 번 로그인하세요.",
|
||||
"errorRegistrationDisabled": "일치하는 계정이 없고, 지금은 회원가입이 닫혀 있어요.",
|
||||
"errorFailed": "싱글 사인온에 실패했어요. 다시 시도해 주세요."
|
||||
},
|
||||
@@ -5553,7 +5560,9 @@
|
||||
"invalidFormat": "이 항목이 읽을 수 있는 형식이 아니에요.",
|
||||
"invalidType": "이 항목이 저장할 수 있는 형식으로 오지 않았어요.",
|
||||
"rateLimited": "너무 자주 바꿨어요. 잠시 후 다시 시도해 주세요.",
|
||||
"other": "이 값은 저장하지 못했어요. 확인한 뒤 다시 시도해 주세요."
|
||||
"other": "이 값은 저장하지 못했어요. 확인한 뒤 다시 시도해 주세요.",
|
||||
"reproofRequired": "이메일 주소를 변경하려면 현재 비밀번호를 입력하세요.",
|
||||
"reproofFailed": "비밀번호가 올바르지 않아 이메일 주소가 변경되지 않았습니다."
|
||||
},
|
||||
"avatar": {
|
||||
"title": "프로필 사진",
|
||||
@@ -6700,7 +6709,8 @@
|
||||
"showChecklist": "체크리스트 다시 표시",
|
||||
"checklistShown": "체크리스트가 대시보드에 다시 표시됩니다.",
|
||||
"checklistNothingHidden": "체크리스트는 숨겨져 있지 않았습니다. 대시보드에서 열립니다."
|
||||
}
|
||||
},
|
||||
"emailChangePassword": "현재 비밀번호 (이메일 주소를 변경하려면 필요)"
|
||||
},
|
||||
"admin": {
|
||||
"title": "관리자",
|
||||
|
||||
+12
-2
@@ -128,6 +128,12 @@
|
||||
"emailInUse": "Ten adres e-mail jest już używany.",
|
||||
"emailRateLimited": "Zbyt wiele zmian adresu e-mail. Spróbuj ponownie później."
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"reproof": {
|
||||
"required": "Potwierdź obecne hasło, aby to zmienić.",
|
||||
"failed": "Weryfikacja nie powiodła się. Nic nie zostało zmienione."
|
||||
}
|
||||
}
|
||||
},
|
||||
"doctorReport": {
|
||||
@@ -439,6 +445,7 @@
|
||||
"errorNoEmail": "Twój dostawca tożsamości nie przekazał zweryfikowanego adresu e-mail.",
|
||||
"errorEmailUnverified": "Twój dostawca tożsamości nie oznaczył Twojego adresu e-mail jako zweryfikowanego.",
|
||||
"errorIdentityConflict": "Ten adres e-mail należy do konta powiązanego już z inną tożsamością SSO.",
|
||||
"errorLinkRequired": "Konto z tym adresem e-mail już tu istnieje. Zaloguj się do niego raz hasłem lub kluczem dostępu, aby połączyć je z logowaniem jednokrotnym.",
|
||||
"errorRegistrationDisabled": "Żadne konto nie pasuje do tej tożsamości, a nowe rejestracje są obecnie zamknięte.",
|
||||
"errorFailed": "Logowanie jednokrotne nie powiodło się. Spróbuj ponownie."
|
||||
},
|
||||
@@ -5553,7 +5560,9 @@
|
||||
"invalidFormat": "To nie jest zapisane w formacie, który to pole może odczytać.",
|
||||
"invalidType": "Wartość nie dotarła w formacie, który to pole może zapisać.",
|
||||
"rateLimited": "Zmieniane zbyt często. Odczekaj chwilę i spróbuj ponownie.",
|
||||
"other": "Ta wartość nie została przyjęta. Sprawdź ją i spróbuj ponownie."
|
||||
"other": "Ta wartość nie została przyjęta. Sprawdź ją i spróbuj ponownie.",
|
||||
"reproofRequired": "Wpisz obecne hasło, aby zmienić adres e-mail.",
|
||||
"reproofFailed": "Hasło jest nieprawidłowe, więc adres e-mail nie został zmieniony."
|
||||
},
|
||||
"avatar": {
|
||||
"title": "Zdjęcie profilowe",
|
||||
@@ -6700,7 +6709,8 @@
|
||||
"showChecklist": "Pokaż listę ponownie",
|
||||
"checklistShown": "Lista wróciła na panel.",
|
||||
"checklistNothingHidden": "Lista nie była ukryta; otwiera się na panelu."
|
||||
}
|
||||
},
|
||||
"emailChangePassword": "Obecne hasło (potrzebne do zmiany adresu e-mail)"
|
||||
},
|
||||
"admin": {
|
||||
"title": "Administracja",
|
||||
|
||||
Reference in new issue
Block a user