有人设法在iOS上使用Firebase实现LinkedIn登录吗?

问题描述 投票:8回答:2

我目前正在构建一个应用程序,我希望人们能够注册他们的LinkedIn帐户。

我正在使用Firebase作为后端,FirebaseAuth框架目前不支持LinkedIn。

我知道Firebase允许自定义身份验证系统,但即使在reading the doc about this之后,我仍然很难理解如何在那里插入LinkedIn以及所谓的身份验证服务器。

有人设法使这项工作?

提前感谢您的意见。

ios swift firebase linkedin firebase-authentication
2个回答
9
投票

Firebase身份验证仅支持四个联合身份提供商:Google,Facebook,Twitter和GitHub。

对于其他每个提供商,您必须使用custom tokens(您将需要一个外部Web服务)。

你可以阅读更多here作为一个完整的例子(该链接适用于Instagram,但它也适用于LinkedIn)。


5
投票

请参阅官方Firebase回购中的示例:Use LinkedIn Sign In with Firebase

在此示例中,我们使用基于OAuth 2.0的身份验证来获取LinkedIn用户信息,然后创建Firebase自定义令牌(使用LinkedIn用户ID)。

© www.soinside.com 2019 - 2024. All rights reserved.