Skip to content

Instantly share code, notes, and snippets.

@shaposhnikoff
Last active June 5, 2024 09:15
Show Gist options
  • Save shaposhnikoff/6b6cca5bf882012f7b5f92f22174e96a to your computer and use it in GitHub Desktop.
Save shaposhnikoff/6b6cca5bf882012f7b5f92f22174e96a to your computer and use it in GitHub Desktop.
links
https://medium.com/@janvithakkar.583/implementing-serverless-api-with-amazon-api-gateway-lambda-function-and-amazon-cognito-user-pool-92ff44cc4949
https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-invoke-api-integrated-with-cognito-user-pool.html
Call the API with Cognito Credentials:
After integrating the user pool, users will need to sign in to Cognito and obtain a JSON Web Token (JWT).
When making API requests, users will include the JWT token in the "Authorization" header with the format "Bearer <token>".
API Gateway will validate the token with Cognito and grant access based on the user's permissions.
https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-integrate-with-cognito.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment