# 无法使用 GoogleAuth 登录

**URL:** https://meta.discourse.org/t/unable-to-login-using-googleauth/282980
**Category:** SSO
**Created:** [2023年十月21日 13:45 UTC](https://meta.discourse.org/t/unable-to-login-using-googleauth/282980 "2023-10-21T13:45:00Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![swati\_vishnoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/swati_vishnoi/32/330297_2.png) [@swati\_vishnoi](https://meta.discourse.org/u/swati_vishnoi)
#### Post date: [2023年十月21日 13:45 UTC](https://meta.discourse.org/t/unable-to-login-using-googleauth/282980/1 "2023-10-21T13:45:00Z")

</div>

您好

我无法在移动设备上使用 Google2auth 登录。  
出现以下错误……有人能指导一下原因吗？

 ![WhatsApp Image 2023-10-21 at 19.11.37](https://global.discourse-cdn.com/meta/original/4X/9/d/7/9d7e374d941333c34f5c9edc1b5c4cdb42f560e3.jpeg)

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2023年十月21日 13:54 UTC](https://meta.discourse.org/t/unable-to-login-using-googleauth/282980/2 "2023-10-21T13:54:57Z")

</div>

您好 @swati_vishnoi 👋 您是否已阅读此主题？

> [@Configure Google login for Discourse](https://meta.discourse.org/t/configure-google-login-for-discourse/15858):
>
> bookmark This guide explains how to set up Google login integration for your Discourse site by configuring OAuth2 credentials in the Google Cloud Console. person_raising_hand Required user level: Administrator Overview Google login allows users to sign in to your Discourse site using their Google accounts. This guide will walk you through: Creating a Google Cloud project Setting up OAuth consent Configuring credentials Enabling Google login in Discourse Create a Google Cloud project …

我认为您的 `client id` 设置可能不正确或未设置。请检查您的 `google oauth2` 设置是否已正确配置。

> 1. 在您的 Discourse 站点设置中，检查 `enable google oauth2 logins`（启用谷歌 oauth2 登录），并填入您之前提供的 `google oauth2 client id`（谷歌 oauth2 客户端 ID）和 `google auth2 client secret`（谷歌 auth2 客户端密钥）。

---

<div class="post-metadata">

### Author: ![swati\_vishnoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/swati_vishnoi/32/330297_2.png) [@swati\_vishnoi](https://meta.discourse.org/u/swati_vishnoi)
#### Post date: [2023年十月21日 14:51 UTC](https://meta.discourse.org/t/unable-to-login-using-googleauth/282980/3 "2023-10-21T14:51:26Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/c/a/b/cab2d73bcdac2a5c1e118e213878d0600339af23.png)

你好，

我按照步骤操作了，但显示是这样的……  
不明白哪里出错了……抱歉，我不是技术人员……

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2023年十月21日 15:04 UTC](https://meta.discourse.org/t/unable-to-login-using-googleauth/282980/4 "2023-10-21T15:04:15Z")

</div>

您的意思是您按照第 6 步操作了，但什么也没出现？从您的截图中看，您似乎删除了凭证。 🤔

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/1/b/61bccea4a65109fa60b3dc174e2679a8112a16e1.png)

---

<div class="post-metadata">

### Author: ![swati\_vishnoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/swati_vishnoi/32/330297_2.png) [@swati\_vishnoi](https://meta.discourse.org/u/swati_vishnoi)
#### Post date: [2023年十月22日 07:43 UTC](https://meta.discourse.org/t/unable-to-login-using-googleauth/282980/5 "2023-10-22T07:43:44Z")

</div>

已完成所有步骤……获得了凭据……  
将其放入 Discourse……仍然收到错误：

 ![WhatsApp Image 2023-10-22 at 13.09.00](https://global.discourse-cdn.com/meta/original/4X/5/f/9/5f96342ec72a8dc383c19dc7054f0f3589efcce8.jpeg)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2023年十月31日 09:39 UTC](https://meta.discourse.org/t/unable-to-login-using-googleauth/282980/12 "2023-10-31T09:39:56Z")

</div>

在此处交叉链接一下：

> [@JammyDodger](#):
>
> 为了完善这一点，在通过私信进行一些讨论后，事实证明验证Google登录需要TXT记录或`<meta>`标签，而不幸的是，Basic套餐无法使用这两种方法。
> 
> 我们现在已经更新了我们的定价页面，以反映Google身份验证可从Standard套餐或更高版本开始使用。
> 
> 对此前的沟通失误表示歉意。🙏

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2023年十月31日 09:40 UTC](https://meta.discourse.org/t/unable-to-login-using-googleauth/282980/13 "2023-10-31T09:40:00Z")

</div>


