Code for my talk "More Security with Serverless"
get the code
git clone https://github.com/ekkards/moresecuritywithserverless
cd signin-at-client
and run authenticate.html
run authenticate.html
cd verify-at-server
npm install
curl https://raw.githubusercontent.com/aws/amazon-cognito-identity-js/master/dist/aws-cognito-sdk.min.js > signin-at-client/aws-cognito-sdk.min.js
curl https://raw.githubusercontent.com/aws/amazon-cognito-identity-js/master/dist/aws-cognito-sdk.min.js.map > signin-at-client/aws-cognito-sdk.min.js.map
curl https://raw.githubusercontent.com/aws/amazon-cognito-identity-js/master/dist/amazon-cognito-identity.min.js > signin-at-client/amazon-cognito-identity.min.js
curl https://raw.githubusercontent.com/aws/amazon-cognito-identity-js/master/dist/amazon-cognito-identity.min.js.map > signin-at-client/amazon-cognito-identity.min.js.map
cd verify-at-server
npm install
npm start
- Install nvm
- nvm install node 6.10.3
- npm install -g node-lambda
- cd hacking-lambda
- node-lambda setup
- install AWS CLI
- install your AWS Keys
Edit the .env file for node-lambda, MUST NOT enter your access keys
node-lambda deploy