# Can't setup Google login for Discourse

**URL:** https://meta.discourse.org/t/cant-setup-google-login-for-discourse/291633
**Category:** SSO
**Tags:** google-login
**Created:** [January 15, 2024, 12:24am UTC](https://meta.discourse.org/t/cant-setup-google-login-for-discourse/291633 "2024-01-15T00:24:14Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Gustavo\_Rivas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gustavo_rivas/32/355086_2.png) [@Gustavo\_Rivas](https://meta.discourse.org/u/Gustavo_Rivas)
#### Post date: [January 15, 2024, 12:24am UTC](https://meta.discourse.org/t/cant-setup-google-login-for-discourse/291633/1 "2024-01-15T00:24:14Z")

</div>

Hello!  
I’m creating a Discourse forum, using hosting from a Communiteq subscription.  
I want to set up Google login, so I started following the indicated instructions at:

> [@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 …

The step 12 further directs me to another set of instructions:  
(can’t add link because new users here are limited to 2 links per post)

And the step 13 directs to another:

> [@Perform Google Search Console Verification with Discourse](https://meta.discourse.org/t/perform-google-search-console-a-k-a-google-webmaster-tools-verification-with-discourse/107229):
>
> bookmark This guide describes how to perform Google Search Console (f.k.a Google Webmaster Tools) verification with Discourse. You can verify domain ownership using three methods - by using the site setting in your forum, creating a TXT DNS record, or by adding an HTML tag. person_raising_hand Required user level: Administrator Verifying your Discourse site with Google Search Console (GSC) ensures that Google can access your site’s data for accurate search indexing and analysis. This gui…

I don’t really understand what OAuth 2.0 Scopes are, or what exactly I’m supposed to do in those steps. But I think I still fall under the “personal use” criteria (I have virtually zero users), so I take it I can skip step 12.

In step 13 however, after copying the TXT from Google Search Console, the instructions say that I should “follow the directions Google provides.”  
And the aforementioned directions from the Google Search Console say that I should:

“Sign in to your domain name provider (e.g. godaddy(dot)com or namecheap(dot)com)  
Copy the TXT record below into the DNS configuration for (_mydiscourseforumaddress_)”

I don’t see a DNS configuration menu in either Discourse settings, or Communiteq settings.  
I have a domain through Bluehost, and I added a CNAME to it so that my Discourse forum is redirected to it; am I supposed to add it there through Bluehost? Even though Communiteq is the real host of the Discourse server?

Going through all sorts of hoops just to allow logins through Google is stretching my nerves, so I hired through Fiverr a self-described expert on everything DNS, Mail, Records, etc.  
But he also doesn’t know what to do. 😅 😂  
He’s asking me where he can find the settings page for the Discourse forum domain.

Any help or indications on what exactly are we missing would be greatly appreciated! 🙏

---

<div class="post-metadata">

### Author: ![rorycb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rorycb/32/423647_2.png) [@rorycb](https://meta.discourse.org/u/rorycb)
#### Post date: [January 15, 2024, 12:41am UTC](https://meta.discourse.org/t/cant-setup-google-login-for-discourse/291633/2 "2024-01-15T00:41:09Z")

</div>

I can’t help you with some of this. But I can help you with:

> [@Gustavo\_Rivas](#):
>
> I supposed to add it there through Bluehost?

Yes, you would add the TXT entry in Bluehost, they are your domain name provider (their help page is here: [https://www.bluehost.com/help/article/dns-management-add-edit-or-delete-dns-entries#modify](https://www.bluehost.com/help/article/dns-management-add-edit-or-delete-dns-entries#modify)), just make sure the type is TXT.

---

<div class="post-metadata">

### Author: ![Gustavo\_Rivas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gustavo_rivas/32/355086_2.png) [@Gustavo\_Rivas](https://meta.discourse.org/u/Gustavo_Rivas)
#### Post date: [January 15, 2024, 12:59am UTC](https://meta.discourse.org/t/cant-setup-google-login-for-discourse/291633/3 "2024-01-15T00:59:41Z")

</div>

What should I add on “refers to”?  
it gives me 3 options:  
@  
www  
Other Host

---

<div class="post-metadata">

### Author: ![Gustavo\_Rivas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gustavo_rivas/32/355086_2.png) [@Gustavo\_Rivas](https://meta.discourse.org/u/Gustavo_Rivas)
#### Post date: [January 15, 2024, 1:11am UTC](https://meta.discourse.org/t/cant-setup-google-login-for-discourse/291633/4 "2024-01-15T01:11:01Z")

</div>

> [@rorycb](#):
>
> Yes, you would add the TXT entry in Bluehost, they are your domain name provider

I managed to verify the ownership and activate the Google Cloud Console project, using the “Add HTML Tag” method!  
Should I still add the TXT on Bluehost?  
Because I still can’t log in using Google, it says Error 400: redirect\_uri\_mismatch

---

<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: [January 15, 2024, 2:57am UTC](https://meta.discourse.org/t/cant-setup-google-login-for-discourse/291633/5 "2024-01-15T02:57:38Z")

</div>

> [@Gustavo\_Rivas](#):
>
> using hosting from a Communiteq subscription

Hi @Gustavo_Rivas 👋 welcome to Discourse Meta. 🙂

You could always contact @RGJ or @michaeld, the good folks at Communiteq and I’m sure they’d be happy to help you. 🙂

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [January 15, 2024, 7:17am UTC](https://meta.discourse.org/t/cant-setup-google-login-for-discourse/291633/6 "2024-01-15T07:17:05Z")

</div>

Absolutely 👍

But since this is not a hosting related question, it might make sense to have it answered here so other people can benefit from the answer as well.

The “add HTML tag” method should be sufficient. The `redirect_uri_mismatch` error you’re getting now is actually a different error and it means that you have successfully tackled the first challenge.

This error means that you have entered the wrong value in #4 here

 ![2336c82222a35d1a88232c5baa8ead24bd5f2345_2_476x500](https://global.discourse-cdn.com/meta/original/4X/6/0/e/60e66dc8f26f86f6ffbed56ebca0df4324296b49.png)

It should be `https://forum.*yourname*.org/auth/google_auth2/callback`  
where you obviously substitute `*yourname*` with the actual value.

---

<div class="post-metadata">

### Author: ![Gustavo\_Rivas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gustavo_rivas/32/355086_2.png) [@Gustavo\_Rivas](https://meta.discourse.org/u/Gustavo_Rivas)
#### Post date: [January 15, 2024, 1:52pm UTC](https://meta.discourse.org/t/cant-setup-google-login-for-discourse/291633/7 "2024-01-15T13:52:30Z")

</div>

> [@RGJ](#):
>
> It should be `https://forum.*yourname*.org/auth/google_auth2/callback`  
> where you obviously substitute `*yourname*` with the actual value.

That’s it!  
My value had a duplicated forward slash, so as soon as I removed it, the Google login now works! 🥳

Thank you very much everyone for your time! 💖

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [February 14, 2024, 1:53pm UTC](https://meta.discourse.org/t/cant-setup-google-login-for-discourse/291633/8 "2024-02-14T13:53:15Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
