Cognito events logging

0

We are currently using the Cognito user pool as our authentication service. We want to get the logs when a user has an unsuccessful login or log out of the application. I know Cloudtrail shows when it has a successful login with a user ID, but it does not show any details about the user In the case of unsuccessful login and logout. Also, Lambda triggers do not have a solution for this. Any suggestion on how to achieve this would be helpful.

1 Risposta
1

Hello.

How about enabling advanced security on your Cognito user pool?
Enabling this feature will record events of user sign-in success and failure.
https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html

profile picture
ESPERTO
con risposta 2 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa
  • Hello, It does not talk about the option of the logout. How can I implement the logout option?

  • As far as I know, I don't think you can check logout only with the Cognito user pool. Therefore, I think you will need a unique implementation to record some kind of log at logout on the application side.

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