namespace ZB.MOM.WW.OtOpcUa.Security; /// /// Auth-cookie configuration bound from Security:Cookie. Consumed by a /// Configure<IOptions<OtOpcUaCookieOptions>, ILoggerFactory> step inside /// AddOtOpcUaAuth that copies the values onto CookieAuthenticationOptions. /// public sealed class OtOpcUaCookieOptions { /// Configuration section name (Security:Cookie). public const string SectionName = "Security:Cookie"; /// /// Auth cookie name. Default uses the ZB.MOM.WW convention; mirrors ScadaBridge's /// ZB.MOM.WW.ScadaBridge.Auth. Changing this invalidates existing sessions on next /// deploy. /// public string Name { get; set; } = "ZB.MOM.WW.OtOpcUa.Auth"; /// Idle sliding-window length in minutes (default 30). public int ExpiryMinutes { get; set; } = 30; /// /// Require HTTPS for the auth cookie. Default true: cookie is marked /// SecurePolicy = Always. Set to false ONLY for local dev stacks running /// plain HTTP — emits a startup Warning when disabled so the misconfiguration is /// audible. /// public bool RequireHttpsCookie { get; set; } = true; }