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
+8
View File
@@ -109,6 +109,14 @@ pub trait UserStoragePort: Send + Sync + 'static {
/// Gets a user by email
async fn get_user_by_email(&self, email: &str) -> Result<User, DomainError>;
/// Returns every user whose email normalizes to `normalized_email`
/// (see `UserRepository::list_users_by_normalized_email` for the
/// full contract and the auto-link ambiguity-detection use case).
async fn list_users_by_normalized_email(
&self,
normalized_email: &str,
) -> Result<Vec<User>, DomainError>;
/// Updates an existing user
async fn update_user(&self, user: User) -> Result<User, DomainError>;