Goal: We are using our own custom authentication server, The embeded retool app needs to get authenticated using our custom authentication server.
The parent application is authenticated using our custom authentication server, how can we pass the access token to Retool (The retool Apps is deployed locally).
Hey @Aditya_SMD - thanks for reaching out. Our documentation on the subject is a little light, but the key to passing data to and from an embedded app is the postMessage API. Parts of this are abstracted away by the Retool UI.
For example, we allow you to write a query within the embedded app that initiates communication with the parent, as described here, but it won't work if the parent isn't prepared to receive and respond to that request. One option is to use the retool-embed library, but you can alternatively define the necessary functionality as I described here.
I hope that helps you to get started! Don't hesitate to reach out with any clarifying questions.
Have you had a chance to review this, @Aditya_SMD? My response above should address your primary need - exposing data from the parent app to the embedded Retool app.