firebase 谷歌登录_将Google登录与Firebase身份验证集成

firebase 谷歌登录

This article is originally published at https://swiftsenpai.com on June 15, 2020.

本文最初于 2020年6月15日 发布在 https://swiftsenpai.com 上。

When it comes to third party backend authentication services for iOS apps, the first that comes to mind for sure is Firebase Authentication. By using Firebase Authentication, iOS developers can skip the hassle of setting up a secure backend server and only focus on the mobile side implementation.

当涉及针对iOS应用的第三方后端身份验证服务时,首先想到的肯定是Firebase身份验证。 通过使用Firebase身份验证,iOS开发人员可以跳过设置安全后端服务器的麻烦,而只专注于移动端实现。

Even though Firebase Authentication and Google Sign-in for iOS are both products of Google, they do not automatically integrate with each other.

尽管Firebase身份验证和iOS的Google登录都是Google的产品,但它们不会自动相互集成。

In this article, I will show you, step-by-step on how to set up Firebase for your iOS project and integrate it with Firebase Authentication.

在本文中,我将逐步向您展示如何为iOS项目设置Firebase并将其与Firebase身份验证集成。

先决条件 (Prerequisite)

This article is the continuation of my previous article Google Sign-In Integration in iOS. If you do not have an iOS app that is already integrated with Google Sign-in, I highly recommend you to go through the previous article before proceeding with this one.

本文是我上一篇文章iOS中的Google登录集成的继续。 如果您还没有与Google登录集成的iOS应用,我强烈建议您先阅读上一篇文章,然后再继续进行本文。

As a quick recap, here’s where we left off:

快速回顾一下,这是我们离开的地方:

Google Sign-In Integration in iOS
Google Sign-in integration in iOS
iOS中的Google登录集成

We have successfully integrated Google Sign-in into our sample app, which means users can sign in to the sample app using their Gmail account without any problem.

我们已成功将Google登录功能集成到示例应用程序中,这意味着用户可以使用其Gmail帐户登录该示例应用程序而不会出现任何问题。

With that being said, let’s get right into Firebase Authentication integration.

话虽如此,让我们直接进行Firebase身份验证集成。

创建Firebase项目 (Create Firebase Project)

Head over to Firebase Console and create a Firebase project for your sample app.

转到Firebase控制台,并为您的示例应用程序创建一个Firebase项目。

Create a Firebase project
Create a Firebase project
创建一个Firebase项目

After clicking on “Add Project”, you will be presented with a list of Google

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值