Connect with OAuth (login)
- Create a HubSpot developer app and request the same scopes as for a Private App (scope table).
- Copy the Callback URL from the Getting Started tab into the app. It ends with
admin-post.php?action=wpas_hubspot_callback. - On the Connections tab choose the flow HubSpot OAuth 2.0 App (With Login), enter the Client ID and Client Secret and press Connect.
- Log in to HubSpot and approve. Finish within 10 minutes, with the same administrator.
The client secret and the tokens are stored encrypted. Your site address in the callback must match the one in the app exactly.