lambda-cognito

This is my simple experiment to put Cognito in front of a lambda function.

I started off following this article, but broke off once it got into "Getting more details about the identity using a custom authorizer".

All the callback code is horrible, I feel dirty.

This article had the most up to date information regarding:

Since then, we’ve released a new feature where you can directly configure a Cognito user pool authorizer to authenticate your API calls; more recently, we released a new proxy resource feature.

Notes

aws cognito-idp sign-up \
--client-id xxxx \
--username jdoe \
--password P@ssw0rd \
--region us-east-1 \
--user-attributes '[{"Name":"given_name","Value":"John"},{"Name":"family_name","Value":"Doe"},{"Name":"email","Value":"jdoe@myemail.com"},{"Name":"gender","Value":"Male"},{"Name":"phone_number","Value":"+61XXXXXXXXXX"}]'  

aws cognito-idp admin-update-user-attributes \
--user-pool-id us-west-2_svyY78jO0 \
--username skehlet \
--userattributes '[{"Name":"name","Value":"Steve Kehlet"}]'