Skip to content

Validate aud payload #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 5, 2025

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