Amazon Cognito Delete account

青春壹個敷衍的年華 提交于 2021-01-28 03:12:16

问题


I have Amazon Cognito user pool with few users added in it. I have added trigger to invoke my Lambda function after Post confirmation. Do we have any trigger in Cognito to invoke the Lambda function after "User Signout" and "Delete User". I did not see any trigger in Cognito.

How the lambda function can be invoked automatically after User signout and Delete user. Kindly throw some light on this.


回答1:


TL;DR: Can't be done

It can't be done automatically because unlike Sign-in/Sign-ups which create an event, there is no logout event per se. Even the LOGOUT endpoint just clears the existing session. Normally, in such cases we could have done some workaround using Cloudtrail but there is no API for sign out (unless you count GlobalSignOut) and even then Cognito does not log user level APIs.



来源:https://stackoverflow.com/questions/43313165/amazon-cognito-delete-account

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!