Using Authing in AWS Lambda.
$ npm install serverless -g
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 workcurl --header "Authorization: unauthorized" <endpoint>
- Should not workcurl --header "Authorization: blabla" <endpoint>
- Should not workcurl <endpoint>
- Should not work
$ npm install
$ npm run serve
$ npm install
$ npm run build