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?

posta 2 anni fa560 visualizzazioni
1 Risposta
0
Risposta accettata

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
ESPERTO
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande