Open anderius opened 6 days ago
Hi @anderius thanks for reporting!
Be sure to check out the docs and the Contributing Guidelines while you wait for a human to take a look at this :slightly_smiling_face:
Cheers!
@anderius I believe this is what you are looking for? This capability in NGINX Ingress controller:
https://github.com/nginxinc/kubernetes-ingress/discussions/4417
Thank you, I was not aware of that discussion. Would you prefer to have feature requests there instead of issues?
A few points:
Currently, we must use snippets to validate claims in the validated JWT.
It would be very nice if we could validate custom claims, for example
scope
, directly from the JWT policy (https://docs.nginx.com/nginx-ingress-controller/configuration/policy-resource/#jwt-using-jwks-from-remote-location).As an example of how this cane be done, see https://learn.microsoft.com/en-us/azure/api-management/validate-jwt-policy.
From that link (of course I don't want XML, but you get the idea :-) ):