Add SRP password recovery and E2EE reset

Add proof-based password registration, login, enrollment, and change flows, with rate limiting and encrypted recovery-key envelopes. Support explicit E2EE identity resets while preserving historical signer verification, and document and test the new recovery workflows.
This commit is contained in:
Artemy
2026-10-24 22:19:08 +07:00
parent 55cc9538f7
commit a3401ceedf
29 changed files with 4322 additions and 36 deletions
@@ -9,6 +9,10 @@ public class UserConfiguration : IEntityTypeConfiguration<User>
public void Configure(EntityTypeBuilder<User> builder)
{
builder.HasKey(x => x.Id);
builder.Property(u => u.SrpSalt).HasMaxLength(64);
builder.Property(u => u.SrpIdentity).HasMaxLength(64);
builder.Property(u => u.SrpVerifier).HasMaxLength(1024);
builder.Property(u => u.CredentialVersion).IsConcurrencyToken();
builder.HasIndex(u => u.Username).IsUnique();
builder.HasIndex(u => u.CreatedOn);
@@ -32,4 +36,4 @@ public class UserConfiguration : IEntityTypeConfiguration<User>
.IsRequired()
.HasMaxLength(128);
}
}
}