mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 17:41:51 +00:00
fix(oidc): a sign-in links to an account by email only when the address was not set by the account itself
An SSO login that matched no account by its subject took the account with the same email address and linked the provider identity to it. That address proves nothing when the account typed it in itself: anyone could sign up with, or switch their profile to, a colleague's address and receive the colleague's first SSO login. The provider switch branch (#2110) relinked a row on any email match without even asking for email_verified, and also for another subject of the same provider. users.email_self_asserted remembers an address the account set itself: signup (not the first account) and an email change in the profile settings set it, an admin entering a new address clears it, and accounts the provider creates start without it. Existing accounts keep linking, except those whose address moved away from the registered one without an admin editing it. A login by email now needs a verified address and an unmarked account, and is refused for another subject of the same issuer, with email_link_blocked and a translated message on the login screen. An email change in the profile settings writes a user.email_change audit row. Refs #2110
This commit is contained in:
@@ -25,6 +25,10 @@ const login: TranslationStrings = {
|
||||
'login.oidc.noEmail': 'Δεν ελήφθη email από τον πάροχο.',
|
||||
'login.oidc.tokenFailed': 'Ο έλεγχος ταυτότητας απέτυχε.',
|
||||
'login.oidc.invalidState': 'Μη έγκυρη συνεδρία. Παρακαλώ δοκιμάστε ξανά.',
|
||||
'login.oidc.emailNotVerified':
|
||||
'Ο πάροχος σύνδεσης δεν έχει επιβεβαιώσει αυτή τη διεύθυνση email, επομένως δεν μπορεί να συνδεθεί με υπάρχοντα λογαριασμό.',
|
||||
'login.oidc.emailLinkBlocked':
|
||||
'Αυτή η σύνδεση δεν ήταν δυνατό να συνδεθεί με τον υπάρχοντα λογαριασμό με αυτό το email. Ζητήστε από τον διαχειριστή να επιβεβαιώσει τη διεύθυνση.',
|
||||
'login.demoFailed': 'Η σύνδεση demo απέτυχε',
|
||||
'login.oidcSignIn': 'Σύνδεση με {name}',
|
||||
'login.oidcOnly':
|
||||
|
||||
Reference in New Issue
Block a user