Migrating Firebase users to AWS Cognito

做~自己de王妃 提交于 2019-12-18 16:46:21

问题


I currently have a mobile application using Firebase for user authentication and storing data.

I would like to migrate from Firebase to AWS. Exporting the DB from Firebase is simple enough. Download the JSON export and populate AWS.

How do I migrate user authentication to Cognito?


回答1:


There are multiple ways to migrate users to AWS Cognito. A couple approaches are:

  • Import users as batches. This will require you to take users in to the forget password flow.
  • Onboard users to Cognito UserPools one at a time. This approach requires you to write some code to check against Cognito if the user exists and if not to authenticate users from the Firebase endpoint and if authenticated correctly save the credentials in Cognito UserPools using Cognito AdminAuth API.

For more details, refer the article from AWS, Migrating Users to Amazon Cognito User Pools.




回答2:


You can use the User Migration Lambda Trigger.

https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-migrate-user.html



来源:https://stackoverflow.com/questions/49567142/migrating-firebase-users-to-aws-cognito

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