fix(adminui-auth): #975 AdminUI roles are re-validated on a timer (cookie OnValidatePrincipal + revalidating circuit provider); demoted users lose elevated policies within the window

This commit is contained in:
Joseph Doherty
2026-12-03 10:12:54 -05:00
parent be5641fc06
commit 019ba96376
10 changed files with 827 additions and 1 deletions
+2
View File
@@ -155,6 +155,8 @@ Security__Ldap__GroupToRole__<AD group>=Viewer
|---|---|---|---|
| `Name` | string | `ZB.MOM.WW.OtOpcUa.Auth` | Auth cookie name. Changing it invalidates existing sessions on next deploy. |
| `ExpiryMinutes` | int | `30` | Idle sliding-window length. |
| `RevalidateIntervalMinutes` | int | `5` | How often a session's roles are re-resolved from the current group→role grants (cookie: first request after the interval; open Blazor circuit: on a timer). ConfigDb read only, never LDAP. Values < 1 are treated as 1 (lmxopcua#975). |
| `MaxSessionMinutes` | int | `480` | Absolute session lifetime from interactive sign-in; the sliding cookie cannot extend it. `0` disables. Bounds how long a directory-group-membership change (invisible to the ConfigDb-only re-check) goes unnoticed. |
| `RequireHttpsCookie` | bool | `true` | `SecurePolicy = Always`. Set `false` only for plain-HTTP local dev (emits a startup Warning). |
> Authentication, data-plane authorization (`NodeAcl` / `PermissionTrie`), and control-plane Admin roles are all in [`security.md`](security.md).