APIs & Integrations

jgoldby
Member

Issue with Oauth Integration Scope added to end of redirect uri?

Hi,

 

I'm trying to test collecting the "code" query param locally using the Oauth flow.

 

My redirect URL - localhost:*****/******/#/hubspotoauth (astrix are not the real url)

 

My install URL - https://app.hubspot.com/oauth/authorize?client_id=*********&redirect_uri=http://localhost:******/******/#/hubspotoauth&scope=contacts 

 

If I try to access this one above ^ it says "you are missing the required parameter scope".

 

If I re-arrange scope to be before the redirect URI It allows me to choose which app I'm trying to integrate - https://app.hubspot.com/oauth/authorize?client_id=38832878-c331-4500-b8bd-90278e61ae53 &scope=contacts &redirect_uri=http://localhost:******/******/#/hubspotoauth 

However, after you choose which app you are trying to integrate it then gives the error that the redirect URI's dont match (im copying from the developer portal under install URL).

 

So I'm in a weird spot, the install URL with scope as the last param doesn't work because it says scope is missing, and if moved in front of the redirect URI it says the redirect URI does not match.

 

Please help 😄

0 Upvotes
3 Replies 3
WendyGoh
HubSpot Employee
HubSpot Employee

Issue with Oauth Integration Scope added to end of redirect uri?

Hey @jgoldby,

 

In order for me to further troubleshoot on this, could you share with me the app ID in question?

0 Upvotes
jgoldby
Member

Issue with Oauth Integration Scope added to end of redirect uri?

@WendyGoh , I think I figured it out, it appears the hash symbol in my redirect URL is causing the problems here.

jgoldby
Member

Issue with Oauth Integration Scope added to end of redirect uri?

Hi @WendyGoh , app id = 228367.

 

Thank you

0 Upvotes