Current plan level (Free, Team, Business, or Enterprise: Retool | Retool Pricing): Business
Monthly/Annual (if Team or Business): Annual
Version of Retool (if self-hosted): N/A
Question / Description: Logging into retool through google in an embed does not currently work, and returns a 403 error. I tested and found the issue is present on both Firefox and Google Chrome. Issue is present on both our specific Retool domain and the generic Retool domain.
Hi Daniel! You need to put your own retool public link in order to make it iframeable. In the image tha you provided, you are putting login.retool.com. it has to be the public link. (In the app, Share > Public > Enable Public link)
I understand that currently, the iframes on public apps are working properly, however, we currently using an iframe on a sensitive page that requires the user to login and can't be made public. The actual application works properly, but the login does not.
@Daniel_Fleuranvil,
I just want to clarify what it is that you are trying to do. You are trying to have users log in to your retool instance from a page inside your app, right?
What I think is happening is that Retool's out of the box Google sso does not work on non-retool domains. You may need to set up your own custom Google SSO and in that config, specify your parent app url in the Authorized JavaScriptOrigins and follow these instructions for the rest of the Authorized redirect URIs and setting up google sso in Retool.
Then, instead of the login.retool.com url you are using, use your instance domain url. I did this locally on my local host and it worked:
Thanks for the update, @Daniel_Fleuranvil. I would definitely expect the setup that Linda shared previously to work. Do you mind sharing screenshots showing the configuration of your OAuth client? And can you let me know which URL you're actually embedding?
If it's easier or preferable, we host Office Hours twice a week and you're more than welcome to join us there!
Heres the set up I have in google cloud. I was at the office hours yesterday but we were unable to get it working prior to the end of the time. The authorization still works on a regular page but it fails in an iframe.
Ah great - glad to hear it! To Linda's point, I think you need to add the domain of the app where you're embedding Retool to the list of authorized JS origins.