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?

feita há 2 anos560 visualizações
1 Resposta
0
Resposta aceita

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
ESPECIALISTA
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas