CodeLiturgy.Dashboard/CodeLiturgy.Views/Application/Session/SessionConstants.cs

23 lines
608 B
C#
Raw Permalink Normal View History

2022-09-26 04:40:18 +03:00
using System;
2022-11-18 03:15:53 +03:00
namespace CodeLiturgy.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-11-17 00:17:44 +03:00
public const string ApiNamePolicy = "Bearer";
public const string CookieNamePolicy = "Cookies";
2022-09-26 04:40:18 +03:00
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
}
}