User Authentication (Signup & Login) on AWS with Lambda, Cognito or IAM

DJSunny

I've been looking to use various AWS services to handle the infrastructure for our next major project. We started looking at docker containers on EC2 instances, but after looking into AWS Lambda a bit more - it seems like a worthy path to explore.

Using the AWS Lambda paradigm, we would simply use Lambda functions as the logical glue to hold our data and events (from other AWS services) together.

For instance, if a user of our product creates a new record, AWS Lambda can be triggered on that event and we can call a lambda function to add that record to AWS Cloudsearch, thus keeping our search up to date.

I'm a little uncertain when it comes to user management, authentication and so on within this type of paradigm. I've read some documentation on IAM and Cognito in looking for an AWS service to offload user sign up, login, logout, forgot password, etc to. It doesn't seem like that's what these services are actually for. IAM is identity management for the organization (not the user base), and cognito is more focused on syncing identity information across many devices or app instances (post authentication).

I'm currently wondering if what I should be doing is writing sign up, login, forgot password etc code as lambda functions myself? or is there some solution or set of solutions within the AWS stack that would scratch this particular itch?

Alexis N-o

You can use your own authentication system with Cognito and then use AMI for authorisation, even for your user base.

Check the authentication flow and some more examples

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

SignUp User via AWS Lambda & Cognito (Serverless Architecture)

Authentication with Lambda and AWS Cognito

AWS Cognito User Authentication

Getting AWS cognito authenticated user in post-authentication lambda trigger

AWS IAM user sso login

How to change background of aws amplify/cognito login/signup screen

AWS Cognito + google signup

AWS Lambda - Search for a user in a cognito user pool

AWS Cognito Pre authentication get user data

AWS Lambda can't call Cognito Identity - IAM Role

Integrate Facebook login with AWS Cognito User Pool

AWS Cognito add user to a group from Lambda

AWS Cognito, Lambda, User credentials in DynamoDB

AWS cognito user pools, custom message lambda

AWS Cognito Lambda Trigger user attributes example

Using AWS Lambda to delete a Cognito User

AWS Lambda error "iam property does not exist" when accessing iam Cognito attribute that I know exists

AWS IAM Authentication to MySQL from dotnet core code running in Lambda

Conn Configuration for AWS Lambda Python RDS Postgres IAM Authentication

Authentication/Cognito SDK not working once deployed to AWS Lambda

Cognito/Lambda: validation in PreSignUp_SignUp

How to add a user to a Cognito User Pool Group from AWS Lambda?

Better User authentication?(aws cognito or Oauth2 or okta)

Flow for authentication when MFA required for user in AWS Cognito

AWS Cognito User Pool Sign In Missing Authentication Token

AWS Cognito User Pool Custom Authentication Lambdas Not Triggering

Spring Security with AWS IAM or Cognito

how can repeat signup aws cognito [solve]

AWS Cognito Authentication in Reactjs