DEV Community

Discussion on: Custom API Gateway Authorizer with Golang

Collapse
 
dorneanu profile image
Victor Dorneanu AWS Community Builders

An excellent tutorial! I also like what you wrote about context and how you can pass along information to downstream components.

Maybe I've missed this: But do you actually also check the claims? Validating the signature of the JWT is not secure enough.

Collapse
 
benbpyle profile image
Benjamen Pyle AWS Community Builders

Thank you! Really glad you liked it. :)

The validation of the token happens from the library I'm using github.com/lestrrat-go/jwx/blob/de.... Here's the file reference.

As for what's in the claim, I let the downstream funcs/services make sure that the user can access what they are asking for. Or you could use OAuth Scopes as well. Lots of options!