mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-06-27 13:33:13 +00:00
IAuth
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user