LambdAuth - Auth using AWS Lambda, Cognito & DynamoDB
nelsonic opened this issue · 1 comments
If anyone can be interested in using lambda to make authentication...
I have made recently a project (located on a private github repo) that provides the possibility to make a "lite" authentication between two s3 buckets using the Google Drive API and AWS lambda.
(These are excerpts of the README)
One must login to a first s3 endpoint login.bucket.com using valid credentials existing in the related google private spreadsheet. (nodejs will connect to the GoogleDrive API using edit-google-spreadsheet package and check the credentials)
If the user authenticates successfully for the first time his IP address will be added to the ip restriction bucket policy (of the bucket containing the app) and he will be then redirected to app.bucket.com.
The authenticated user can connect to the app.bucket.com with any devices using the authorized ip WITHOUT needing to login again.
The s3 bucket containing the app (app.bucket.com) block all public IP addresses by default.