Class UserMfaEnabledEvent
- Namespace
- Compendium.Core.Domain.Events.Integration
- Assembly
- Compendium.Core.dll
Integration event raised when multi-factor authentication is enabled for a user.
public sealed record UserMfaEnabledEvent : IntegrationEventBase, IIntegrationEvent, IEquatable<IntegrationEventBase>, IEquatable<UserMfaEnabledEvent>
- Inheritance
-
UserMfaEnabledEvent
- Implements
- Inherited Members
Constructors
UserMfaEnabledEvent(string, string, string, DateTimeOffset)
Integration event raised when multi-factor authentication is enabled for a user.
public UserMfaEnabledEvent(string UserId, string Email, string MfaType, DateTimeOffset EnabledAt)
Parameters
UserIdstringThe unique identifier of the user.
EmailstringThe user's email address.
MfaTypestringThe type of MFA enabled (e.g., TOTP, SMS, WebAuthn).
EnabledAtDateTimeOffsetThe timestamp when MFA was enabled.
Properties
The user's email address.
public string Email { get; init; }
Property Value
EnabledAt
The timestamp when MFA was enabled.
public DateTimeOffset EnabledAt { get; init; }
Property Value
EventType
Gets the name of the event type for serialization and routing purposes.
public override string EventType { get; }
Property Value
MfaType
The type of MFA enabled (e.g., TOTP, SMS, WebAuthn).
public string MfaType { get; init; }
Property Value
UserId
The unique identifier of the user.
public string UserId { get; init; }