Custom auth with adminInitiateAuth

0

Hello, my problem is that, Cognito isn't registering authentication events with adminInitiateAuth.

Here I have only access to username, so that's why I'm using CUSTOM_AUTH

AuthFlow: 'CUSTOM_AUTH',
AuthParameters: {
   USERNAME: username,
},
ClientId: clientId,
UserPoolId: userPoolId

It returns correct response (access token, refresh token), but it doesn't register Cognito authentication events in user details.

Table Last 100 authentication events is empty.

Tried with other AuthFlows and it worked, am I missing something?

asked 2 years ago554 views
1 Answer
0
Accepted Answer

Hi,

Currently logging of auth events (which is a feature in advanced security features) is only supported with standard authentication flows (USER_SRP_AUTH and USER_PASSWORD_AUTH), it is not supported with CUSTOM_AUTH flow.

AWS
EXPERT
answered 2 years 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