# Google Authentication Plugin URI mismatch

**URL:** <https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256>\
**Category:** Need help\
**Created:** [July 9, 2024, 1:17pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256 "2024-07-09T13:17:59Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jefeoliveira22](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jefeoliveira22/32/235680_2.png) [@jefeoliveira22](https://forum.bubble.io/u/jefeoliveira22)\
**Post date:** [July 9, 2024, 1:17pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256/1 "2024-07-09T13:17:59Z")

</div>

Im using bubble pluign to authenticate google singup/login, it used to work just fine in test mode, now that is live, it doesnt. We have everything ready and approved on google’s cloud side. My login page is `/login` and redirect is `/explore`

 ![error2](https://us1.discourse-cdn.com/bubble/original/3X/3/c/3cb5bf607ac75a91e994ececb0a80973e468a525.jpeg)  
 ![error1](https://us1.discourse-cdn.com/bubble/original/3X/2/4/24824d6783eae472e1249f4a06f49bebd306c353.jpeg)

---

<div class="post-metadata">

**Author:** ![GH5T](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gh5t/32/209141_2.png) [@GH5T](https://forum.bubble.io/u/GH5T)\
**Post date:** [July 9, 2024, 2:39pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256/2 "2024-07-09T14:39:09Z")

</div>

Make sure you go into the plugin settings and check the box that says something about opening the redirect URI (forgot what it was specifically as I haven’t used the Google auth plugin in a minue).

---

<div class="post-metadata">

**Author:** ![jefeoliveira22](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jefeoliveira22/32/235680_2.png) [@jefeoliveira22](https://forum.bubble.io/u/jefeoliveira22)\
**Post date:** [July 9, 2024, 4:30pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256/3 "2024-07-09T16:30:14Z")

</div>

yep, its already set that way 😕

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [July 9, 2024, 4:33pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256/4 "2024-07-09T16:33:58Z")

</div>

Try to inspect the url when you click on the login social. You should be able to find the redirect url sent by Bubble. Be sure to add it to Google Cloud Console

---

<div class="post-metadata">

**Author:** ![jefeoliveira22](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jefeoliveira22/32/235680_2.png) [@jefeoliveira22](https://forum.bubble.io/u/jefeoliveira22)\
**Post date:** [July 9, 2024, 5:23pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256/5 "2024-07-09T17:23:41Z")

</div>

Its not possible, it just keeps loading forever, and if go to next step it redirects me to that URI mismatch page…

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/c/1/c13829a2089ade1704713d35f0237a8916843d44.png)

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [July 9, 2024, 5:25pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256/6 "2024-07-09T17:25:11Z")

</div>

Inspect the url where you are redirected. Not before. When you click on the signup login with google button, Bubbl will send you to the authorize url. This is the url you need to inspect. It may be before the error page (if you are redirected again). Sometimes it’s hard to catch, so you may need to use browser console/network

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [July 9, 2024, 5:40pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256/8 "2024-07-09T17:40:54Z")

</div>

yes the last one. You have the redirect url. You can use [https://www.urldecoder.org/](https://www.urldecoder.org/) to decore the url and make sur this is what you have in Google Cloud console

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [July 9, 2024, 5:47pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256/10 "2024-07-09T17:47:17Z")

</div>

Not all of that, just hte part that is after redirect\_url= and before the next &  
`https://app.sparespace.io/api/1.1/oauth_redirect`

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [July 9, 2024, 5:49pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256/12 "2024-07-09T17:49:46Z")

</div>

No. Just this

> [@Jici](#):
>
> [https://app.sparespace.io/api/1.1/oauth\_redirect](https://app.sparespace.io/api/1.1/oauth_redirect)

In google cloud console redirect url  
Make sure to add it to the correct client ID key

It could take a few minute to propagate

---

<div class="post-metadata">

**Author:** ![jefeoliveira22](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jefeoliveira22/32/235680_2.png) [@jefeoliveira22](https://forum.bubble.io/u/jefeoliveira22)\
**Post date:** [July 9, 2024, 5:51pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256/13 "2024-07-09T17:51:48Z")

</div>

i already had that…

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/d/d/dd26563b93526d5258995bdbe70567700e498f9b.jpeg)  
third line

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [July 9, 2024, 5:52pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256/14 "2024-07-09T17:52:31Z")

</div>

Make sure you don’t have any space (example at the end) or typo.  
And that it’s under the correct Client ID

Try to delete and add it back

---

<div class="post-metadata">

**Author:** ![jefeoliveira22](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jefeoliveira22/32/235680_2.png) [@jefeoliveira22](https://forum.bubble.io/u/jefeoliveira22)\
**Post date:** [July 9, 2024, 5:56pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256/15 "2024-07-09T17:56:17Z")

</div>

I will try that… should i leave only that URI and delete all?

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [July 9, 2024, 5:57pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256/16 "2024-07-09T17:57:30Z")

</div>

You can delete everything

Even version-test will use the same redirect url (the generic one by Bubble)

---

<div class="post-metadata">

**Author:** ![jefeoliveira22](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jefeoliveira22/32/235680_2.png) [@jefeoliveira22](https://forum.bubble.io/u/jefeoliveira22)\
**Post date:** [July 9, 2024, 6:25pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256/17 "2024-07-09T18:25:27Z")

</div>

It worked! But…  
Error from Google: invalid\_client

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/1/1/11b082f64739874b0baad5cfeaf4e4d0a6d3c15c.png)

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [July 9, 2024, 6:30pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256/18 "2024-07-09T18:30:28Z")

</div>

Did you get to the consent screen? Also, it could be related to project vs product name. Make sure client ID in Bubble is the correct one

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [July 9, 2024, 6:31pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256/19 "2024-07-09T18:31:53Z")

</div>

Just did a test with your app and the error is when you are back to Bubble. Can you share API connector auth section?

---

<div class="post-metadata">

**Author:** ![jefeoliveira22](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jefeoliveira22/32/235680_2.png) [@jefeoliveira22](https://forum.bubble.io/u/jefeoliveira22)\
**Post date:** [July 9, 2024, 6:36pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256/20 "2024-07-09T18:36:05Z")

</div>

Thank you for your time @Jici  
It was a wrong API keys error sent by my client

---

<div class="post-metadata">

**Author:** ![GH5T](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gh5t/32/209141_2.png) [@GH5T](https://forum.bubble.io/u/GH5T)\
**Post date:** [July 9, 2024, 8:35pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256/21 "2024-07-09T20:35:11Z")

</div>

@Jici is the boss of API Connector. Deserves a damn title IMO. 🙂  
\*\* even though this isn’t directly connected to API Connector, same principals 😛

---

<div class="post-metadata">

**Author:** ![jefeoliveira22](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jefeoliveira22/32/235680_2.png) [@jefeoliveira22](https://forum.bubble.io/u/jefeoliveira22)\
**Post date:** [July 9, 2024, 8:43pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256/22 "2024-07-09T20:43:44Z")

</div>

Shame on bubble/google for not displaying/debugging a proper error code

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [September 17, 2024, 1:18pm UTC](https://forum.bubble.io/t/google-authentication-plugin-uri-mismatch/330256/23 "2024-09-17T13:18:41Z")

</div>

This topic was automatically closed after 70 days. New replies are no longer allowed.
