feat: port session 11 — Accounts & Directory JWT Store

- Account: full Account class (200 features) with subject mappings,
  connection counting, export/import checks, expiration timers
- DirJwtStore: directory-based JWT storage with sharding and expiry
- AccountResolver: IAccountResolver, MemoryAccountResolver,
  UrlAccountResolver, DirAccountResolver, CacheDirAccountResolver
- AccountTypes: all supporting types (AccountLimits, SConns, ExportMap,
  ImportMap, ServiceExport, StreamExport, ServiceLatency, etc.)
- 34 unit tests (599 total), 234 features complete (IDs 150-349, 793-826)
This commit is contained in:
Joseph Doherty
2026-02-26 15:37:08 -05:00
parent 06779a1f77
commit 12a14ec476
14 changed files with 5297 additions and 66 deletions

View File

@@ -1044,7 +1044,7 @@ public sealed partial class NatsServer
{
// Validate JWT format (stub — session 06 has JWT decoder).
// jwt.DecodeAccountClaims(v) — skip here, checked again in CheckResolvePreloads.
ar.Store(k, v);
ar.StoreAsync(k, v).GetAwaiter().GetResult();
}
}
return null;