Available OAuth2 grant types


#1

Hello,

in https://developers.hubspot.com/docs/methods/oauth2/get-access-and-refresh-tokens I read: "The grant type of the request, must be authorization_code for the initial request to get the access and refresh tokens."

Does that mean you're not providing any other OAuth2 grant types? Especially not "client credentials grant" ?

If so, is there any other means of authorization for a backend service (i.e. not on behalf of a specific user) available - besides API key?


#3

Hi @Steffen,

You're correct; authorization_token is the only grant type supported by HubSpot. The existing OAuth flow is still the authorization method of choice for a backend service; HubSpot's OAuth specification follows the "Authorization Code Flow", found here: