♻️ Mix things up
This commit is contained in:
22
DysonNetwork.Shared/Auth/AuthConstants.cs
Normal file
22
DysonNetwork.Shared/Auth/AuthConstants.cs
Normal file
@ -0,0 +1,22 @@
|
||||
namespace DysonNetwork.Shared.Auth;
|
||||
|
||||
public static class AuthConstants
|
||||
{
|
||||
public const string SchemeName = "DysonToken";
|
||||
public const string TokenQueryParamName = "tk";
|
||||
public const string CookieTokenName = "AuthToken";
|
||||
}
|
||||
|
||||
public enum TokenType
|
||||
{
|
||||
AuthKey,
|
||||
ApiKey,
|
||||
OidcKey,
|
||||
Unknown
|
||||
}
|
||||
|
||||
public class TokenInfo
|
||||
{
|
||||
public string Token { get; set; } = string.Empty;
|
||||
public TokenType Type { get; set; } = TokenType.Unknown;
|
||||
}
|
Reference in New Issue
Block a user