# Cannot signup with google?

**URL:** https://meta.discourse.org/t/cannot-signup-with-google/141309
**Category:** Support
**Created:** [February 11, 2020, 5:31pm UTC](https://meta.discourse.org/t/cannot-signup-with-google/141309 "2020-02-11T17:31:36Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Young](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/young/32/169393_2.png) [@Young](https://meta.discourse.org/u/Young)
#### Post date: [February 11, 2020, 5:31pm UTC](https://meta.discourse.org/t/cannot-signup-with-google/141309/1 "2020-02-11T17:31:36Z")

</div>

Just bought the standard package and setup my website. I followed the tutorial and setup google signup. But when I click on the with google button, it showed this page:

400: **Error: redirect\_uri\_mismatch**

The redirect URI in the request, xxx/auth/google\_oauth2/callback, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs, visit: [https://console.developers.google.com/apis/credentials/oauthclient/114890565295-bf2ojd8c9cggp8na3h29j78ghnmo0fo7.apps.googleusercontent.com?project=[114890565295](tel:114890565295)](https://console.developers.google.com/apis/credentials/oauthclient/114890565295-bf2ojd8c9cggp8na3h29j78ghnmo0fo7.apps.googleusercontent.com?project=%5B114890565295%5D(tel:114890565295))

What’s going on? How do I fix it?

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [February 11, 2020, 5:39pm UTC](https://meta.discourse.org/t/cannot-signup-with-google/141309/2 "2020-02-11T17:39:56Z")

</div>

> [@Young](#):
>
> when I click on the with google button, it showed this page:
> 
> 400: **Error: redirect\_uri\_mismatch**

I have seen that error message when the URL that has been added to the ‘Authorized Redirect URI’ section on Google is incorrect. It should be set to

`https://forum.example.com/auth/google_oauth2/callback`

Replace `forum.example.com` with your site’s domain.

---

<div class="post-metadata">

### Author: ![Young](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/young/32/169393_2.png) [@Young](https://meta.discourse.org/u/Young)
#### Post date: [February 11, 2020, 7:39pm UTC](https://meta.discourse.org/t/cannot-signup-with-google/141309/4 "2020-02-11T19:39:07Z")

</div>

That’s exactly what I added in google.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [February 11, 2020, 8:08pm UTC](https://meta.discourse.org/t/cannot-signup-with-google/141309/5 "2020-02-11T20:08:04Z")

</div>

Did you enable Google logins on your Discourse site? It’s in step 9 of [Configure Google login for Discourse](https://meta.discourse.org/t/configuring-google-login-for-discourse/15858). Try going through that guide again and make sure everything has been setup correctly.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [February 11, 2020, 8:12pm UTC](https://meta.discourse.org/t/cannot-signup-with-google/141309/6 "2020-02-11T20:12:33Z")

</div>

> [@Young](#):
>
> That’s exactly what I added in google.

It almost certainly isn’t. Make sure that it’s `https`. Trailing slash or space could also be a problem.

---

<div class="post-metadata">

### Author: ![Young](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/young/32/169393_2.png) [@Young](https://meta.discourse.org/u/Young)
#### Post date: [February 12, 2020, 12:01am UTC](https://meta.discourse.org/t/cannot-signup-with-google/141309/7 "2020-02-12T00:01:07Z")

</div>

Oh, somehow the field was cleared. Thanks.

---

<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: [March 13, 2020, 12:06am UTC](https://meta.discourse.org/t/cannot-signup-with-google/141309/8 "2020-03-13T00:06:18Z")

</div>

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