forked from gongxuegit/tiku-backend.net
feat(security): add distributed authorization foundation
This commit is contained in:
12
Tiku.Api/Options/BrowserAuthOptions.cs
Normal file
12
Tiku.Api/Options/BrowserAuthOptions.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace Tiku.Api.Options;
|
||||
|
||||
public sealed class BrowserAuthOptions
|
||||
{
|
||||
public const string SectionName = "BrowserAuth";
|
||||
public const string AccessCookie = "__Host-tiku-at";
|
||||
public const string RefreshCookie = "__Secure-tiku-rt";
|
||||
public const string CsrfCookie = "__Host-tiku-csrf";
|
||||
public const string CsrfHeader = "X-CSRF-Token";
|
||||
|
||||
public string[] AllowedOrigins { get; set; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user