Merge pull request 'fix(auth): secure 2FA challenges and session revocation' (#5) from audit-auth-session into main
Validation intégrée avec profils/failover : Infrastructure 305/305 (dont upgrade/rollback migrations combinées), Application 504/504. Branche auth Web389/389 et PostgreSQL auth3/3 ; révocation abonnements inter-contextes11/11. Galerie #10 suit séparément.
This commit was merged in pull request #5.
This commit is contained in:
commit
6b887d5fbf
51 files changed
+6714
-245
No files matched your search
@@ -0,0 +1,18 @@
|
||||
using Heimdall.Domain.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace Heimdall.Infrastructure.Data.Configurations;
|
||||
|
||||
public class LoginChallengeConfiguration : IEntityTypeConfiguration<LoginChallenge>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<LoginChallenge> builder)
|
||||
{
|
||||
builder.ToTable("login_challenges");
|
||||
builder.HasKey(x => x.Id);
|
||||
builder.Property(x => x.Id).HasMaxLength(64);
|
||||
builder.Property(x => x.SecurityStamp).HasMaxLength(256);
|
||||
builder.HasIndex(x => x.ExpiresAt);
|
||||
builder.HasOne<AppUser>().WithMany().HasForeignKey(x => x.UserId).OnDelete(DeleteBehavior.Cascade);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user