feat(oidc): support of +alias email (clean it up to reconciliate)

This commit is contained in:
Edouard Vanbelle
2026-08-08 22:11:31 +02:00
parent bd8e77c3dd
commit 4c34b25a7b
9 changed files with 306 additions and 32 deletions
@@ -1610,6 +1610,11 @@ pub async fn oidc_callback(
// JSON body would leave the user staring at raw JSON. The SPA
// login page reads `?login_error=<reason>` on mount, renders a
// localized notice, and strips the param via history.replaceState.
//
// Reasons currently emitted (see auth_application_service.rs
// auto-link decision tree): auto_link_disabled,
// auto_link_email_not_verified, already_linked_elsewhere,
// email_ambiguous.
OidcCallbackResult::AutoLinkRefused { reason } => {
let config = auth_app.oidc_config().unwrap();
let frontend_url = config.frontend_url.trim_end_matches('/');