Google OAuth 2 authorization and web parameters

Hello everyone

I’m using Google OAuth 2 authorization and I face a problem.

In order for Google Auth to work it needs the URL of each page of the app (because i put the login button on a Header that is on every page of the app)
If the URL contains Web Parameters it will not work anymore…
How to fix this issue?

Thanks
Fabian

1 Like

Does no one have any idea?

can’t you type in something like:

*.bubbleapps.io ?

Or how does the url change, maybe you can provide two examples.

For instance, I have a Login button on List page and I’m using web parameters on that page.

https://myapp.bubble.io/version-test/list?step=4&id=5&

When the user decides to log in Google will produce an error because in the Google OAuth I have listed the clean URL https://myapp.bubble.io/version-test/list

How to make it work even with web parameters?

Thanks for your answer
Fabian

1 Like

I have the following settings and its working well:

Authorized JavaScript origins

For use with requests from a browser


Authorized redirect URIs

For use with requests from a web server

https://myappname.bubbleapp.io
https://customdomain.com/link1
https://customdomain.com/link2

but don’t have parameters set there.

I guess its not possible from security reasons. You should work with custom states on page load here and use those variables.

With that approach you could use always the same redirecting page.

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