Expand description
JWT and shared-secret authentication for the Agent Protocol.
AuthConfig supports four modes:
- Jwt – HMAC-SHA256 JWT validation/issuance.
- SharedSecret – simple string comparison (legacy).
- Dual – try JWT first, fall back to shared secret.
- External – trust an outer layer (e.g. tonic interceptor) that already validated the token; pass through the token value as agent id.
Structs§
- Dkod
Claims - JWT claims carried inside every agent token.
Enums§
- Auth
Config - Authentication configuration supporting JWT, shared-secret, or both.