Configure OAuth for HubSpot ingestion
Learn how to configure HubSpot for ingestion from HubSpot Marketing Hub into Databricks. The managed HubSpot connector in Lakeflow Connect uses OAuth 2.0 user-to-machine (U2M) authentication. Use the authentication details that you retrieve from the steps on this page to create a Unity Catalog connection in Databricks.
Create a public app and retrieve authentication details
-
Visit the legacy HubSpot app page at
https://app-na2.hubspot.com/legacy-apps/<hubspot-id>. Replace<hubspot-id>with your HubSpot ID. -
Click Create Legacy App, then select Public App.
-
On the App Info tab, enter your app details.
-
On the Auth tab, set the redirect URL (format:
https://<your_workspace_domain>/login/oauth/lakehousefederation.html). For example:https://e2.our-staging-workspace.cloud.databricks.com/login/oauth/lakehousefederation.html -
Note the Client ID and the Client secret. Use these to create a Unity Catalog connection in Databricks.
-
Under Scopes > Required scopes, add only the following scopes. Omitting any of these or adding additional scopes will cause failures later in the setup process.
communication_preferences.readcontentcrm.objects.marketing_events.readcrm.objects.marketing_events.writeformsforms-uploaded-filesmarketing.campaigns.read
-
Click Save, then click Create app.
Next steps
Use Catalog Explorer to create a connection so that any user with USE CONNECTION or ALL PRIVILEGES can create pipelines. See HubSpot.