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

Ignore keys of unknown alg when verifying JWTs with JWKS #4725

Commits on Jun 1, 2022

  1. Ignore keys of unknown alg when verifying JWTs with JWKS

    Additionally, improve the JWT verification process when a JWKS
    is provided:
    
    * If `kid` is present in JWT header, and exists in JWKS — verify using
      that key only.
    * If `kid` not present in JWT header, try verification only using keys
      matching the `alg` provided in the JWT header (mandatory claim).
    
    Fixes open-policy-agent#4699
    
    Signed-off-by: Anders Eknert <anders@eknert.com>
    anderseknert committed Jun 1, 2022
    Configuration menu
    Copy the full SHA
    5a23fb0 View commit details
    Browse the repository at this point in the history