Goal:
I am trying to let my EXTERNAL users connect their hubspot account to share information with my retool external app but I am entering into 2 issues:
Branding from Retool is auth, no mention of my branding but of the Retool branding (see screenshot below)
Hubspot is refusing the connection telling that the "This app was not evaluated nor approved by Hubspot" (see screenshot below)
Ahh I see what's going on - I didn't realize that Retool has a built-in HubSpot resource connector. That's how you were able to set up the integration without ever logging into HubSpot as a developer.
If you want full control over that authorization screen, you'll need to set up a generic "REST API" resource in Retool and authenticate it with OAuth2. This means also creating a HubSpot developer account setting up an OAuth2 endpoint there.
I'll lay it out here and am happy to help guide you through the process!
In the "Auth" tab, add https://oauth.retool.com/oauth/oauthcallback and https://oauth.retool.com/oauth/user/oauthcallback as "Redirect URLs" and choose the scopes that you want to authorize.
Hit "Create app" in order to finalize this configuration. After doing so, take note of the client_id and client_secret values back in the "Auth" tab, as you'll need these later.
At this point, everything should be set up on the HubSpot side of things. For setting up the corresponding Retool resource:
Create a new "REST API" resource and select "OAuth 2.0" as the authentication type. Fill out the fields with the necessary information, including the client_id and client_secret from before.
One last note - you'll still see the banner about your app not being "evaluated nor approved by HubSpot" unless you publish the app on the marketplace or make your HubSpot app private, instead. It should be possible to create a new private app via the "Settings" menu but it wasn't working for me.