2024-12-26 13:38:43 +03:00
|
|
|
|
using Mirea.Api.Security.Common.Domain;
|
|
|
|
|
using System.Collections.Generic;
|
2024-11-04 02:39:10 +03:00
|
|
|
|
|
2024-12-26 13:38:43 +03:00
|
|
|
|
namespace Mirea.Api.Security.Common.Model;
|
2024-10-31 04:12:02 +03:00
|
|
|
|
|
|
|
|
|
public class User
|
|
|
|
|
{
|
2024-11-02 20:21:46 +03:00
|
|
|
|
public required string Id { get; set; }
|
2024-10-31 04:12:02 +03:00
|
|
|
|
public required string Username { get; set; }
|
|
|
|
|
public required string Email { get; set; }
|
|
|
|
|
public required string PasswordHash { get; set; }
|
|
|
|
|
public required string Salt { get; set; }
|
2024-11-02 00:50:10 +03:00
|
|
|
|
public required TwoFactorAuthenticator TwoFactorAuthenticator { get; set; }
|
2024-10-31 04:12:02 +03:00
|
|
|
|
public string? SecondFactorToken { get; set; }
|
2024-11-04 02:39:10 +03:00
|
|
|
|
public Dictionary<OAuthProvider, OAuthUser>? OAuthProviders { get; set; }
|
2024-10-31 04:12:02 +03:00
|
|
|
|
}
|