diff --git a/docs/administration/oidc/index.md b/docs/administration/oidc/index.md index 9f2f7131..e89ddf80 100644 --- a/docs/administration/oidc/index.md +++ b/docs/administration/oidc/index.md @@ -122,6 +122,8 @@ The first OIDC login for an existing local account matches it by email, so set t - **Switching providers keeps accounts.** A login from a new issuer matches by email again and relinks the account to the new provider. - **A new subject for a linked email is refused.** When the same provider sends a different subject for an email that is already linked, RomM rejects the login with a 403 rather than hand the account to someone else. This happens when the provider reassigns the email or recreates the user. See [Authentication Troubleshooting](../../troubleshooting/authentication.md#this-account-is-linked-to-a-different-identity-at-the-provider) to relink it. +Matching by email only links an account whose email an admin or the provider set. A user can type any address into their profile or an invite registration, so an email they chose themselves doesn't count until an admin confirms it: in **Administration → Users → Edit**, turn on **Confirm this email** and apply. Until then, a first OIDC login with that email is refused with a 403 and nothing is linked. An email an admin sets when creating or editing a user needs no confirmation, and accounts that existed before upgrading count as confirmed. + ## Autologin To bypass the login page entirely and redirect straight to the IdP, so RomM feels like a native part of your SSO stack: diff --git a/docs/troubleshooting/authentication.md b/docs/troubleshooting/authentication.md index 55349fef..434c1f23 100644 --- a/docs/troubleshooting/authentication.md +++ b/docs/troubleshooting/authentication.md @@ -134,6 +134,12 @@ If the new provider user really is the account's owner, clear the stored link in UPDATE users SET oidc_issuer = NULL, oidc_sub = NULL WHERE username = 'alice'; ``` +### `An account with this email exists but an administrator has not confirmed its email` + +The login's email belongs to a RomM account whose email the user set themselves, from their profile or an invite registration, and no admin has confirmed it. RomM won't link the provider identity to it, since that user could have entered someone else's address. + +If the account really belongs to the person signing in, an admin turns on **Confirm this email** in **Administration → Users → Edit** and applies, then the user logs in again. See [Account matching](../administration/oidc/index.md#account-matching). + ### Signing in at the provider lands back on the RomM login page You end up on `/login?bypass_autologin=true` instead of signed in when RomM rejects the provider's callback, for example because the provider returned an error, the authorization code was already used or expired, or the ID token failed validation. The `bypass_autologin` flag keeps `OIDC_AUTOLOGIN` from sending you straight back into the same failure.