Custom User Authentication through SOAP Call from Cognito


Hi All, I am trying to build a solution for a customer and the requirement is to authenticate the user using their LoginService (Legacy SOAP Call) from Cognito. The flow looks like this UI-->Cognito-->SOAP Call-->Cognito--UI. Any suggestions on this implementation?

asked 6 months ago95 views
1 Answer

You can use a Pre authentication Lambda trigger. Now within your Lambda function you can make a call to your SOAP service (provided it has connectivity and has access) and receive the response (authenticate). For Pre authentication response parameters, Amazon Cognito does not expect any additional return information in the response. Your function can return an error to reject the sign-in attempt, or use API operations to query and modify your resources. Once authenticate Cognito can return response to your UI.

answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions