jwtAuth

Version

Validates a JWT on requests (signature via JWKS, required exp/sub) and exposes claims in exchange properties ("jwt").

Example Configuration

jwtAuth:
expectedAud: my-audience
expectedIss: https://auth.example.com
expectedTid: 67c859d3-0cd4-4a99-86db-088bed1a9601
jwks: {}
jwtAuth:
    expectedAud: my-audience
    expectedIss: https://auth.example.com
    expectedTid: 67c859d3-0cd4-4a99-86db-088bed1a9601
    jwks: {}

Syntax

jwtAuth:
'$ref': <string>
expectedAud: <string>
expectedIss: <string>
expectedTid: <string>
headerJwtRetriever: {}
jwks: {}
scopesClaim: <string>
jwtAuth:
  '$ref': <string>
  expectedAud: <string>
  expectedIss: <string>
  expectedTid: <string>
  headerJwtRetriever: {}
  jwks: {}
  scopesClaim: <string>

Attributes

NameRequiredDefaultDescriptionExamples
$reffalse-Reference a component defined under components.-
expectedAudfalse-

Expected audience ('aud') value of the token.

Use "any!!" to allow any audience value. This is strongly discouraged.

-
expectedIssfalsenot set

Expected issuer ('iss') value of the token. If set, tokens without an 'iss' claim or with a different issuer are rejected.

https://auth.example.com
expectedTidfalsenot set

Expected tenant ID ('tid') value of the token.

67c869d3-0cd4-4a99-86db-088bed1a9601
scopesClaimfalsescp

Name of the claim that carries the token's scopes, e.g. "scp" (Microsoft Entra ID) or "scope" (RFC 9068). The claim may hold a space separated string or a list of strings. The scopes are used by the OpenAPI security validation.

scope

Child Structure

ElementCardinalityDescription
headerJwtRetriever0..1
jwks0..1JSON Web Key Set, configured either by an explicit list of JWK or by a list of JWK URIs.

Can be used in