Skip to content

Validate aud payload#77

Merged
eshepelyuk merged 1 commit intotraefik-plugins:mainfrom
cortexcloud:feat/validate-aud
May 5, 2025
Merged

Validate aud payload#77
eshepelyuk merged 1 commit intotraefik-plugins:mainfrom
cortexcloud:feat/validate-aud

Conversation

@hlab-pawat
Copy link
Contributor

Summary

This PR adds support for validating the aud (audience) claim in JWT payloads, consistent with how exp and nbf claims are currently handled. To enable audience validation, both PayloadFields and the expected Aud value must be specified in the middleware configuration.

apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
  name: jwt-auth
spec:
  plugin:
    jwt:
      PayloadFields:
        - aud
      Aud: my-api

@eshepelyuk eshepelyuk merged commit 94d0c46 into traefik-plugins:main May 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants