Skip to content
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

Backend JWT validation failure #3511

Open
Manasha11 opened this issue Jan 8, 2025 · 0 comments
Open

Backend JWT validation failure #3511

Manasha11 opened this issue Jan 8, 2025 · 0 comments
Labels

Comments

@Manasha11
Copy link

Manasha11 commented Jan 8, 2025

Description

Backend JWT validation is failing due to the padding applied in the token.

Steps to Reproduce

  • Enable backend JWT using below configs in deployment.toml.
[apim.jwt]
enable = true
encoding = "base64url"
...
  • Restart the server and invoke an API.
  • Grab the backend JWT and validate using https://jwt.io/.

It will prompt the below warning:
Warning: Looks like your JWT signature is not encoded correctly using base64url ([https://tools.ietf.org/html/rfc4648#section-5).](https://tools.ietf.org/html/rfc4648#section-5%29.) Note that padding ("=") must be omitted as per https://tools.ietf.org/html/rfc7515#section-2

Version

4.1.0

Environment Details (with versions)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant