kra-new/internal/security
Yvan 4e5071ee65 优化结构 2026-08-23 00:38:33 +08:00
..
README.md 优化结构 2026-08-23 00:38:33 +08:00
token.go 优化结构 2026-08-23 00:38:33 +08:00
token_test.go 优化结构 2026-08-23 00:38:33 +08:00

README.md

Internal Security

This package owns the application's administrator JWT policy. It is kept inside internal because its claims, audience, issuer and password-version fields are KRA-specific security protocol, not a reusable JWT utility.

Generic stateless helpers may live in pkg, but admin token signing and verification stay here so other services cannot accidentally depend on this application's security contract.