AUTH LOGIN NOT WORKING with Hubspot [EXTERNAL APP]

Hello,

  • 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:
  1. Branding from Retool is auth, no mention of my branding but of the Retool branding (see screenshot below)
  2. Hubspot is refusing the connection telling that the "This app was not evaluated nor approved by Hubspot" (see screenshot below)
  • Screenshots:

Anyone succeed in implementing this for their users?

Thank you!

@Darren can you specify how I can setup my own oauth endpoint inside Retool pls?

Ahh I see what's going on - I didn't realize that Retool has a built-in HubSpot resource connector. :sweat_smile: 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!

  1. Make a HubSpot developer account here.

  2. Start the process to create a new app via the developer dashboard. Note that this is where you can customize the name and logo for your app.

  1. 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.

  2. 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. :tada: For setting up the corresponding Retool resource:

  1. 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.

  1. Try hitting "Connect with OAuth" to verify that everything is set up correctly.

  2. Last but not least, define the "Base URL" and "Headers" for your resource, check out the documentation, and you're ready to query HubSpot from Retool.

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.