Skip to main content

Module validation_service

Module validation_service 

Source
Expand description

Services for validating decoded JWTs against application expectations.

This submodule contains JwtValidationService, which validates raw token strings using a configured codec and checks issuer expectations.

Use this when a boundary in your system receives a raw token string and you want a clear, typed validation step before handing claims to higher layers.

The service keeps validation behavior narrow and explicit:

  • decode the token with the configured codec
  • reject tokens that fail codec-level validation
  • reject tokens whose issuer does not match the configured issuer

Expiration, signature, and other JWT-level checks remain owned by the configured codec and its underlying JWT validation settings.

Structs§

JwtValidationService
Service responsible for validating raw JWT token strings.

Traits§

JwtClaimsVerifier
Verifies raw JWT strings and returns decoded claims.