:drunk: AI trying to fix bugs
This commit is contained in:
47
DysonNetwork.Common/Models/Auth/AuthFactorType.cs
Normal file
47
DysonNetwork.Common/Models/Auth/AuthFactorType.cs
Normal file
@ -0,0 +1,47 @@
|
||||
namespace DysonNetwork.Common.Models.Auth;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the different types of authentication factors that can be used for multi-factor authentication.
|
||||
/// </summary>
|
||||
public enum AuthFactorType
|
||||
{
|
||||
/// <summary>
|
||||
/// Password-based authentication factor.
|
||||
/// </summary>
|
||||
Password = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Time-based One-Time Password (TOTP) authentication factor.
|
||||
/// </summary>
|
||||
Totp = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Email-based authentication factor.
|
||||
/// </summary>
|
||||
Email = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Phone/SMS-based authentication factor.
|
||||
/// </summary>
|
||||
Phone = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Security key (FIDO2/WebAuthn) authentication factor.
|
||||
/// </summary>
|
||||
SecurityKey = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Recovery code authentication factor.
|
||||
/// </summary>
|
||||
RecoveryCode = 5,
|
||||
|
||||
/// <summary>
|
||||
/// Backup code authentication factor.
|
||||
/// </summary>
|
||||
BackupCode = 6,
|
||||
|
||||
/// <summary>
|
||||
/// OpenID Connect (OIDC) authentication factor.
|
||||
/// </summary>
|
||||
Oidc = 7
|
||||
}
|
@ -45,30 +45,3 @@ public enum AuthChallengePlatform
|
||||
System = 100,
|
||||
Unknown = 999
|
||||
}
|
||||
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public enum AuthFactorType
|
||||
{
|
||||
Password = 0,
|
||||
EmailCode = 1,
|
||||
PhoneCode = 2,
|
||||
Totp = 3,
|
||||
WebAuthn = 4,
|
||||
RecoveryCode = 5,
|
||||
|
||||
// Social and federation
|
||||
Google = 10,
|
||||
Apple = 11,
|
||||
Microsoft = 12,
|
||||
Facebook = 13,
|
||||
Twitter = 14,
|
||||
Github = 15,
|
||||
|
||||
// Enterprise
|
||||
Saml = 50,
|
||||
Oidc = 51,
|
||||
Ldap = 52,
|
||||
|
||||
// Custom factor types
|
||||
Custom = 100
|
||||
}
|
||||
|
Reference in New Issue
Block a user