Use JWT Authorizers with Amazon Cognito and API Gateway
Focus Otter
0:00 / 0:00
Use JWT Authorizers with Amazon Cognito and API Gateway
59 085 просмотров · 5 лет назад
Focus Otter
3,75 тыс. подписчиков
59 085 просмотров · 5 лет назад
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:
https://cognito-idp.your-region.amazo...
grabbing the jwt from the url:
location.href.split('=')[1].split('&')[0]