Skip to content

SavelevArtemD/Serverless-example-JWT-auth-HTTP-API

Repository files navigation

Example configuring JWT authorizer for Api Gateway HTTP endpoint with serverless

Description:

Simple example of configuring authorizer for Api Gateway HTTP endpoint. Can be used as a note.

Required:

How to use:

  1. Clone or download
  2. Run npm i
  3. Run pip install -r requirements.txt
  4. Run ./deploy.sh <stage> <aws_profile> where:
  • <stage> - stage, which you want (for example dev)
  • <aws_profile> - profile, which you configured during serverless installation

After deploy you will see the url for your endpoint at the terminal, which looks like: https://<API_ID>.execute-api.us-east-1.amazonaws.com/test. Try to send GET request and you get 401 Error.

Here instructions to get tokens with aws cli.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors