使用Parse用户进行Firebase身份验证 [英] Firebase authentication with Parse user

查看:112
本文介绍了使用Parse用户进行Firebase身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个需要实时聊天的iOS(Swift)应用程序,作为该功能的一部分.尽管Parse在推送,数据存储等方面表现良好,但它不支持实时.我想使用Firebase进行实时支持,但是需要使用Parse用户向Firebase进行身份验证的帮助.我真的不知道从哪里开始.任何帮助将不胜感激.

I'm building an iOS (Swift) app that needs realtime chat as part of the functionality. While Parse works well for push, data storage, etc..., it doesn't support realtime. I would like to use Firebase for the realtime support, but need help authenticating to Firebase using a Parse user. I really don't know where to start with this. Any help would be greatly appreciated.

推荐答案

问题非常模糊,因此不可能给出明确的答案:这是一个想法.

The question is pretty vague so a definitive answer is not possible: here's a thought.

Firebase和Parse是两家不同的公司,因此需要单独的身份验证.

Firebase and Parse are two different companies and therefore require separate authentications.

如果您的用户在Parse中具有用户名/密码类型身份验证,则可以在Firebase中使用相同的数据并通过代码进行身份验证.即,用户在Parse中创建了一个新帐户,然后在Firebase中通过代码创建了一个帐户.当用户对Parse进行身份验证时,它还会通过代码向Firebase进行身份验证.

If your users have a username/password type authentication in Parse, you could use the same data in Firebase and authenticate through code. i.e. User creates a new account in Parse, and an account is created in Firebase via code. When the user authenticates to Parse, it also authenticates to Firebase via code.

要遵循此路线,需要考虑很多设计元素:如何在不通过应用将自身认证为超级"用户的情况下创建Firebase用户(使用代码)?硬代码凭证?那可能是一个安全问题.

There are a LOT of design elements to consider in going this route: how do you create a firebase user (in code) without your app authenticating itself as a 'super' user? Hard code credentials? That may be a security issue.

您要保留两组用户数据吗?一是解析,一是Firebase?如果用户需要重设密码或帐户怎么办.如您所见,它很快就会失控.

Are you going to keep two sets of user data? One in Parse and one in Firebase? What if a user needs to reset their password or account. As you can see, it can get out of control rather quickly.

您可能要考虑使用一个平台来简化整个过程.根据至少一项要求的声音,Firebase可以完成Parse可以完成的大部分工作,还可以提供您所需的实时更新.

You may want to consider sticking with one platform to simplify the entire process. By the sound of at least one of the requirements, Firebase can do much of what Parse can do but also give the real-time updates you need.

这篇关于使用Parse用户进行Firebase身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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