将 Firebase 用户迁移到 AWS Cognito [英] Migrating Firebase users to AWS Cognito

查看:23
本文介绍了将 Firebase 用户迁移到 AWS Cognito的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前有一个使用 Firebase 进行用户身份验证和存储数据的移动应用.

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

我想从 Firebase 迁移到 AWS.从 Firebase 导出数据库非常简单.下载 JSON 导出并填充 AWS.

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

如何将用户身份验证迁移到 Cognito?

How do I migrate user authentication to Cognito?

推荐答案

有多种方法可以将用户迁移到 AWS Cognito.几种方法是:

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

  • 批量导入用户.这将要求您让用户进入忘记密码流程.
  • 一次将一个用户加入 Cognito UserPools.这种方法需要您编写一些代码来检查 Cognito 是否存在用户,如果不存在,则从 Firebase 端点对用户进行身份验证,如果身份验证正确,则使用 Cognito AdminAuth API 将凭据保存在 Cognito UserPools 中.

有关更多详细信息,请参阅来自 AWS 的文章,将用户迁移到 Amazon Cognito 用户池.

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

这篇关于将 Firebase 用户迁移到 AWS Cognito的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆