# Secure AWS API-G with Custom AuthZ Tutorial

**URL:** <https://community.auth0.com/t/secure-aws-api-g-with-custom-authz-tutorial/53615>\
**Category:** Get Help\
**Created:** [November 20, 2020, 5:13pm UTC](https://community.auth0.com/t/secure-aws-api-g-with-custom-authz-tutorial/53615 "2020-11-20T17:13:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy.spence](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andy.spence/32/12751_2.png) [@andy.spence](https://community.auth0.com/u/andy.spence)\
**Post date:** [November 20, 2020, 5:13pm UTC](https://community.auth0.com/t/secure-aws-api-g-with-custom-authz-tutorial/53615/1 "2020-11-20T17:13:28Z")

</div>

New here, refugee from Cognito.

I am working through the above tutorial and have got as far as testing the Custom AuthZ locally.

I am getting the error “JwksError: Not Found”

.env is

JWKS\_URI=[https://dev-2](https://dev-2)\***[p.eu.auth0.com/.well-known/jwks.json](http://p.eu.auth0.com/.well-known/jwks.json)  
AUDIENCE=[https://pets-example](https://pets-example)  
TOKEN\_ISSUER=[https://dev-2](https://dev-2)**[p.eu.auth0.com/](http://p.eu.auth0.com/)

event.json is

{  
“type” : “TOKEN”,  
“authorizationToken” : “Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IlZKSGhSOEdNSm4zSm1UQzJIczZHSSJ9.eyJpc3M_**JneakIGNROsPPHsYetfFU2ySNQt8Wt\_bf5A6R2DzRB8oVP26UOxzAr5uqVg",  
“methodArn”:"arn:aws:execute-api:us-east-1:8**__2:m\*\*\*\*\*\*\*\*k/_/GET/pets”  
}

Searching does not give me any pointers

Thoughts?

---

<div class="post-metadata">

**Author:** ![andy.spence](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andy.spence/32/12751_2.png) [@andy.spence](https://community.auth0.com/u/andy.spence)\
**Post date:** [November 20, 2020, 7:33pm UTC](https://community.auth0.com/t/secure-aws-api-g-with-custom-authz-tutorial/53615/2 "2020-11-20T19:33:38Z")

</div>

Sorted. Rookie error in referencing the location for the Json Web Key Sets

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 20, 2020, 8:04pm UTC](https://community.auth0.com/t/secure-aws-api-g-with-custom-authz-tutorial/53615/4 "2020-11-20T20:04:07Z")

</div>

Thanks for posting an update and welcome to the Community! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 5, 2020, 8:04pm UTC](https://community.auth0.com/t/secure-aws-api-g-with-custom-authz-tutorial/53615/5 "2020-12-05T20:04:10Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
