-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Verify MFA factors for OOBSMS, OOBEmail, TOTP Authenticator and Recov…
…eryCodes
- Loading branch information
1 parent
e4e7669
commit 868da9f
Showing
46 changed files
with
2,942 additions
and
1,049 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/Domain.Events.Shared/Identities/PasswordCredentials/MfaAuthenticatorAssociated.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using Domain.Common; | ||
using Domain.Common.ValueObjects; | ||
using Domain.Shared.Identities; | ||
using JetBrains.Annotations; | ||
|
||
namespace Domain.Events.Shared.Identities.PasswordCredentials; | ||
|
||
public sealed class MfaAuthenticatorAssociated : DomainEvent | ||
{ | ||
public MfaAuthenticatorAssociated(Identifier id) : base(id) | ||
{ | ||
} | ||
|
||
[UsedImplicitly] | ||
public MfaAuthenticatorAssociated() | ||
{ | ||
} | ||
|
||
public required string AuthenticatorId { get; set; } | ||
|
||
public string? BarCodeUri { get; set; } | ||
|
||
public string? OobChannelValue { get; set; } | ||
|
||
public string? OobCode { get; set; } | ||
|
||
public string? Secret { get; set; } | ||
|
||
public required MfaAuthenticatorType Type { get; set; } | ||
|
||
public required string UserId { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/Domain.Events.Shared/Identities/PasswordCredentials/MfaAuthenticatorConfirmed.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using Domain.Common; | ||
using Domain.Common.ValueObjects; | ||
using Domain.Shared.Identities; | ||
using JetBrains.Annotations; | ||
|
||
namespace Domain.Events.Shared.Identities.PasswordCredentials; | ||
|
||
public sealed class MfaAuthenticatorConfirmed : DomainEvent | ||
{ | ||
public MfaAuthenticatorConfirmed(Identifier id) : base(id) | ||
{ | ||
} | ||
|
||
[UsedImplicitly] | ||
public MfaAuthenticatorConfirmed() | ||
{ | ||
} | ||
|
||
public required string AuthenticatorId { get; set; } | ||
|
||
public string? ConfirmationCode { get; set; } | ||
|
||
public required bool IsActive { get; set; } | ||
|
||
public string? OobCode { get; set; } | ||
|
||
public required MfaAuthenticatorType Type { get; set; } | ||
|
||
public required string UserId { get; set; } | ||
|
||
public string? VerifiedState { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
402 changes: 359 additions & 43 deletions
402
src/IdentityApplication.UnitTests/PasswordCredentialsApplication.MfaSpec.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.