-
-
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.
Associate and Disassociate MFA factors for OOBSMS, OOBEmail and TOTP …
…Authenticator
- Loading branch information
1 parent
0af16d2
commit 547b2ea
Showing
18 changed files
with
809 additions
and
227 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
src/Domain.Events.Shared/Identities/PasswordCredentials/MfaAuthenticatorAdded.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,26 @@ | ||
using Domain.Common; | ||
using Domain.Common.ValueObjects; | ||
using Domain.Shared.Identities; | ||
using JetBrains.Annotations; | ||
|
||
namespace Domain.Events.Shared.Identities.PasswordCredentials; | ||
|
||
public sealed class MfaAuthenticatorAdded : DomainEvent | ||
{ | ||
public MfaAuthenticatorAdded(Identifier id) : base(id) | ||
{ | ||
} | ||
|
||
[UsedImplicitly] | ||
public MfaAuthenticatorAdded() | ||
{ | ||
} | ||
|
||
public string? AuthenticatorId { get; set; } | ||
|
||
public required bool IsActive { 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
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.