APIs & Integrations

spingary
Member

OAuth2 flow keeps giving me OAuth1 tokens

I am trying to convert an app to OAuth2, but the tokens endpoint keeps giving me OAuth1 tokens:

My process is:

  1. Initiated OAuth2 integration using https://app.hubspot.com/oauth/authorize?client_id=XYZ&redirect_uri=https://mydomain.com/connect/resu...
  2. Take the generated code and called the https://api.hubapi.com/oauth/v1/token endpoint per my postman image above.

I even tried creating a new app in Hubspot developer portal and using those client_id and secret credentials.

What might I be missing?

Thank you,
Gary Wong

0 Upvotes
1 Reply 1
spingary
Member

OAuth2 flow keeps giving me OAuth1 tokens

I was able to resolve this. I think it had to do with my developer account. The app I created for local development was under one of my other Hubspot developer accounts. I tried a different one (one that is associated with a paid account) and it started to give me OAuth2 tokens.

0 Upvotes