I used Cognito in my javascript. But I am implementing a Lambda Function that requires logging in
The first approach I did was DynamoDB
if (apiGatewayProxyRequest.Headers.ContainsKey("username") ||
apiGatewayProxyRequest.Headers.ContainsKey("password"))
//check if existing in dynamodb
//if yes continue
//else return unauthorized
But is it possible to use Lambda event in .Net Core with Cognito to determine login
this is what I am planning to use almost the same code as the one I am using for dynamodb but now using cognito
if (apiGatewayProxyRequest.Headers.ContainsKey("username") ||
apiGatewayProxyRequest.Headers.ContainsKey("password"))
//check if existing in Cognito
//if yes continue
//else return unauthorized