Рет қаралды 52,778
HTTP endpoints in API Gateway have the ability to secure resources by first validating a JWT token.
In this example, we'll use Amazon cognito's hosted UI to to create a JWT and configure an API Gateway to only provide a lambda response if it's valid.
cognito issuer endpoint:
cognito-idp.yo...
grabbing the jwt from the url:
location.href.split('=')[1].split('&')[0]