AuthScheme Parameter (Connect-HubSpot Cmdlet)
Specifies the authentication method to use when connecting to HubSpot.
Syntax
Connect-HubSpot -AuthScheme string
Possible Values
OAuth, PrivateAppTokenData Type
cstr
Default Value
"OAuth"
Remarks
Use this property to control how the cmdlet authenticates with HubSpot. Choose one of the following supported authentication schemes:
- OAuth: Performs OAuth 2.0 authentication. Use this method if you are connecting through a registered HubSpot app and using a standard OAuth flow.
- PrivateAppToken: Performs token-based authentication using a HubSpot Private App. Set this option if you want to authenticate using the OAuthAccessToken property and a token generated from a HubSpot Private App.
This property is required when establishing a connection and determines how credentials are exchanged with the HubSpot API.