[CHANGE] Reworking auth schemes & services, handlers, etc.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
namespace DotBased.AspNet.Authority.Models.Options.Auth;
|
||||
|
||||
public class AuthenticationSecurityOptions
|
||||
{
|
||||
public SecurityMode SecurityMode { get; set; } = SecurityMode.Normal;
|
||||
public List<string> AllowedLoginMethods { get; set; } = ["*"];
|
||||
}
|
||||
|
||||
public enum SecurityMode
|
||||
{
|
||||
Loose = 0,
|
||||
Normal = 1,
|
||||
Strict = 2
|
||||
}
|
@@ -0,0 +1,8 @@
|
||||
namespace DotBased.AspNet.Authority.Models.Options.Auth;
|
||||
|
||||
public class AuthorityAuthenticationOptions
|
||||
{
|
||||
public AuthenticationSecurityOptions Security { get; set; } = new AuthenticationSecurityOptions();
|
||||
public SessionOptions Session { get; set; } = new SessionOptions();
|
||||
public string DefaultScheme { get; set; } = string.Empty;
|
||||
}
|
@@ -0,0 +1,6 @@
|
||||
namespace DotBased.AspNet.Authority.Models.Options.Auth;
|
||||
|
||||
public class SessionOptions
|
||||
{
|
||||
public TimeSpan RefreshInterval { get; set; } = TimeSpan.FromMinutes(30);
|
||||
}
|
Reference in New Issue
Block a user