2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 13:33:13 +00:00
This commit is contained in:
2024-06-21 16:37:48 +03:00
parent c04fc29810
commit 3a89a108db
49 changed files with 2095 additions and 1373 deletions

View File

@ -1,4 +1,5 @@
using System;
using Esiur.Net.Packets;
using System;
using System.Collections.Generic;
using System.Text;
@ -6,11 +7,16 @@ namespace Esiur.Security.Membership
{
public class AuthorizationResults
{
AuthorizationResultsResponse Response { get; set; }
TwoFactorAuthorizationMethod TwoFactorMethod { get; set; }
public AuthorizationResultsResponse Response { get; set; }
public IIPAuthPacketIAuthDestination Destination { get; set; }
public IIPAuthPacketIAuthFormat RequiredFormat { get; set; }
public string Clue { get; set; }
public string AppName { get; set; }
public string Code { get; set; }
public int Timeout { get; set; }
public ushort Timeout { get; set; } // 0 means no timeout
public uint Reference { get; set; }
public DateTime Issue { get; set; } = DateTime.UtcNow;
public bool Expired => Timeout == 0 ? false : (DateTime.UtcNow - Issue).TotalSeconds > Timeout;
}
}