Signup via google

Hi, I am trying to implement sign up using Google but get below error.

The redirect URI in the request, https://testapp.bubbleapps.io/version-test/signup?debug_mode=true, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs, visit https://console.developers.google.com/apis/credentials/

As per bubble plugin documentation, the redirect URL that should be provided in google console is ‘https://testapp.bubbleapps.io/api/1.1/oauth_redirect’ but it says redirect URL in the request is something else.

Where do we configure redirect URI in the request?

Howdy @kumar. Were you able to resolve this? Could you please post a resolution? Thanks.

Sorry for the late reply. It has do with the redirect URL.

Hello. I don’t know if you were able to resolve this, as the thread is a bit old, but this is a pretty simple fix.

If you have not done so, yet, you will need to register your app with Google in the Google Developer Console. Once you have done this, you will need an API key for the service you are trying to use. In the Authentication section, you will be able to set your “redirect URL”. You can post both a development and live URL in the domains, which will allow your user to be directed to the appropriate page after authentication. Just make sure the page you are redirecting to is the same page from which the user logs in.

More simply on that last part:

Use the generic redirect URL as described in the Bubble docs. (There’s no way to register all of your pages as they should be dynamic [else why are you using Bubble?].)

Also pay attention to the “?debug_mode=true” part on your redirects as you may well not be able to enter that in the developer console.

You tend to have to (although annoying) redirect without the debug on.

1 Like