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
已提问 2 个月前278 查看次数
1 回答
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
专家
已回答 2 个月前
profile picture
专家
已审核 2 个月前
profile picture
专家
已审核 2 个月前
  • 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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则