feat: port session 06 — Authentication & JWT types, validators, cipher suites
Port independently-testable auth functions from auth.go, ciphersuites.go, and jwt.go. Server-dependent methods (configureAuthorization, checkAuthentication, auth callout, etc.) are stubbed for later sessions. - AuthTypes: User, NkeyUser, SubjectPermission, ResponsePermission, Permissions, RoutePermissions, Account — all with deep Clone() methods - AuthHandler: IsBcrypt, ComparePasswords, ValidateResponsePermissions, ValidateAllowedConnectionTypes, ValidateNoAuthUser, ValidateAuth, DnsAltNameLabels, DnsAltNameMatches, WipeSlice, ConnectionTypes constants - CipherSuites: CipherMap, CipherMapById, DefaultCipherSuites, CurvePreferenceMap, DefaultCurvePreferences - JwtProcessor: JwtPrefix, WipeSlice, ValidateSrc (CIDR matching), ValidateTimes (time-of-day ranges), TimeRange type - ServerOptions: added Users, Nkeys, TrustedOperators properties - 67 new unit tests (all 328 tests pass) - DB: 18 features complete, 25 stubbed; 6 Go tests complete, 125 stubbed
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# NATS .NET Porting Status Report
|
||||
|
||||
Generated: 2026-02-26 17:11:07 UTC
|
||||
Generated: 2026-02-26 17:27:34 UTC
|
||||
|
||||
## Modules (12 total)
|
||||
|
||||
@@ -13,19 +13,19 @@ Generated: 2026-02-26 17:11:07 UTC
|
||||
|
||||
| Status | Count |
|
||||
|--------|-------|
|
||||
| complete | 449 |
|
||||
| complete | 467 |
|
||||
| n_a | 82 |
|
||||
| not_started | 3074 |
|
||||
| stub | 68 |
|
||||
| not_started | 3031 |
|
||||
| stub | 93 |
|
||||
|
||||
## Unit Tests (3257 total)
|
||||
|
||||
| Status | Count |
|
||||
|--------|-------|
|
||||
| complete | 219 |
|
||||
| complete | 225 |
|
||||
| n_a | 82 |
|
||||
| not_started | 2857 |
|
||||
| stub | 99 |
|
||||
| not_started | 2726 |
|
||||
| stub | 224 |
|
||||
|
||||
## Library Mappings (36 total)
|
||||
|
||||
@@ -36,4 +36,4 @@ Generated: 2026-02-26 17:11:07 UTC
|
||||
|
||||
## Overall Progress
|
||||
|
||||
**843/6942 items complete (12.1%)**
|
||||
**867/6942 items complete (12.5%)**
|
||||
|
||||
Reference in New Issue
Block a user