Skip to main content

Module auth

Module auth 

Source
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§

DkodClaims
JWT claims carried inside every agent token.

Enums§

AuthConfig
Authentication configuration supporting JWT, shared-secret, or both.