Polianin Nikita
cd6f25deba
All logic related to token manipulation has been transferred to the AuthService. Also added TOTP 2FA and rethought the logic of logging into the application
22 lines
592 B
C#
22 lines
592 B
C#
namespace Mirea.Api.Security.Common.Domain;
|
|
|
|
internal class FirstAuthToken
|
|
{
|
|
public FirstAuthToken(RequestContextInfo context)
|
|
{
|
|
UserAgent = context.UserAgent;
|
|
Ip = context.Ip;
|
|
Fingerprint = context.Fingerprint;
|
|
}
|
|
|
|
public FirstAuthToken()
|
|
{
|
|
}
|
|
|
|
public string UserAgent { get; set; } = null!;
|
|
public string Ip { get; set; } = null!;
|
|
public string Fingerprint { get; set; } = null!;
|
|
public required string UserId { get; set; }
|
|
public required SecondFactor SecondFactor { get; set; }
|
|
public string? Secret { get; set; }
|
|
} |