Skip to content

Example of a service that uses API Gateway custom authorizer feature to authorize your endpoints.

Notifications You must be signed in to change notification settings

eahefnawy/serverless-authorizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Authorizer

Example of a service that uses API Gateway custom authorizer feature to authorize your endpoints.

Usage

  • serverless install --url https://github.com/eahefnawy/serverless-authorizer
  • cd serverless-authorizer
  • serverless deploy
  • Notice the displayed endpoint after deployment
  • curl --header "Authorization: allow" <endpoint> - Should work! Authorized!
  • curl --header "Authorization: deny" <endpoint> - Should not work
  • curl --header "Authorization: unauthorized" <endpoint> - Should not work
  • curl --header "Authorization: blabla" <endpoint> - Should not work
  • curl <endpoint> - Should not work

About

Example of a service that uses API Gateway custom authorizer feature to authorize your endpoints.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published