HubSpot Connector Guide > HubSpot connections > HubSpot connection authentication properties
  

HubSpot connection authentication properties

When you create a HubSpot connection, you can configure the OAuth 2.0 authentication properties.
To authenticate the HubSpot connection using OAuth2 authentication, select OAuth2 in the Authentication Type list and configure the following properties:
Property
Description
Grant Type
Required. Select the required grant type based on your use case. The grant type is set to Authorization Code for OAuth 2 configuration.
Authorization URL
Required. Enter the OAuth authorization URL for the OAuth provider to authorize the user request.
For example: https://app.hubspot.com/oauth/authorize
Token Request URL
Required. Enter the OAuth token request URL that handles token requests.
For example: https://api.hubapi.com/oauth/v1/token
The expiration of the refresh token depends on the OAuth provider. You must re-authenticate and publish the connection before the token expires.
Note: The refresh token doesn't apply to agents and agent groups.
Client ID
Required. Specify the identifier value from the OAuth provider.
Client Secret
Required. Enter the client secret to connect to the email application.
Scope
Required. Specify the scope. The scope in OAuth authentication limits an application's access to a user's account. You can select multiple scopes for a single client. To enter multiple scopes, separate each value with a space. For example, crm.objects.subscriptions.write crm.objects.subscriptions.read crm.objects.orders.write oauth crm.objects.commercepayments.read crm.objects.orders.read crm.objects.invoices.read
Session duration
Optional. Enter the number of minutes to wait before refreshing the session. This value is used if you can't get the token expiration from the OAuth provider. Default is 60 minutes.
Other Parameters
Optional. Enter parameters to customize the authorization request, separated with semicolons. You can provide additional information or specify requirements of the OAuth provider.
Authorization Status
Optional. Indicates the current status, the name of the user who authorized, and the last time when the authorization was completed.
Authorize Access
Click to initiate the authorization workflow using OAuth.
Use the Client ID, Client Secret, and Scope that you copied from the Hubspot app.