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.

Eugene
preguntada hace 16 días179 visualizaciones
1 Respuesta
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
EXPERTO
respondido hace 16 días
profile picture
EXPERTO
revisado hace 15 días
profile picture
EXPERTO
revisado hace 16 días
  • 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.