namespace ErsatzTV.Application.Auth; /// /// Shared constants for the browser-SPA session authentication (issue #295): the cookie scheme name, /// the custom claim types the local-login path stamps onto the principal, and the auth-method marker /// values. The web host (cookie OnValidatePrincipal, AuthController) and the Application /// handlers both reference these so the claim contract has a single definition. /// public static class AuthConstants { /// The cookie authentication scheme name shared by local login and the OIDC callback. public const string CookieScheme = "cookie"; /// The OIDC challenge scheme name. public const string OidcScheme = "oidc"; /// Claim type recording how the principal signed in ( / ). public const string AuthMethodClaim = "etv:auth_method"; /// Claim type carrying the local admin's security stamp (checked on every request to revoke sessions). public const string SecurityStampClaim = "etv:security_stamp"; public const string MethodLocal = "local"; public const string MethodOidc = "oidc"; /// Minimum length for a local admin password. public const int MinPasswordLength = 8; }