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

Clarification on validating JWT using generated JWKS on apigee #10

Open
aramkrishna opened this issue Feb 19, 2024 · 0 comments
Open

Clarification on validating JWT using generated JWKS on apigee #10

aramkrishna opened this issue Feb 19, 2024 · 0 comments

Comments

@aramkrishna
Copy link

@DinoChiesa

We have followed this git project to generate the JWKS on apigee & we are able to generate JWT using listed curl command

curl -i -X POST -H content-type:application/x-www-form-urlencoded
-u ${client_id}:${client_secret}
-d 'grant_type=client_credentials' -d 'alg=rsa'
"$endpoint/jwt-with-jwks/oauth2-cc/token"

We are able to validate using validateToken.js from terminal, however for our use case if we have to validate JWT on apigee project itself rather than having external js file.
Do we have any ways to get the required public key using one of listed approach for validation ?
https://cloud.google.com/apigee/docs/api-platform/reference/policies/verify-jwt-policy#publickeyjwks

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

No branches or pull requests

1 participant