CodeLiturgy.Dashboard/BlueWest.Data.Auth/Session/SessionConstants.cs

22 lines
548 B
C#
Raw Normal View History

2022-09-26 04:40:18 +03:00
using System;
2022-09-27 20:12:13 +03:00
namespace BlueWest.Data.Auth
2022-09-26 04:40:18 +03:00
{
2022-09-27 20:12:13 +03:00
public static class SessionConstants
2022-09-26 04:40:18 +03:00
{
2022-10-27 20:13:02 +03:00
/// <summary>
/// Max age for the Session
/// </summary>
2022-09-26 04:40:18 +03:00
public static TimeSpan DefaultSessionMaxAge = TimeSpan.FromHours(24);
2022-10-27 20:13:02 +03:00
/// <summary>
/// API User policy Key
/// </summary>
2022-09-26 04:40:18 +03:00
public const string ApiNamePolicy = "ApiUser";
public const string SessionTokenHeaderName = "x-bw2-auth";
2022-10-27 20:13:02 +03:00
public const string CookieDomain = "https://localhost:7022";
2022-09-26 04:40:18 +03:00
}
}