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?

gefragt vor 2 Jahren560 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen