-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hubspot: Authorization failed because there is a mismatch between the scopes in the install URL and the app's configured scopes. #117
Comments
Hi @AndyBoot , In my demo an error message shows up on one of HubSpot's pages briefly before getting redirected to our proxy page. I've tested with two scenarios, one where I've cleared the cookies and connect to my HB account, and I manually input the authorization code in the workflow. And the second where I'm already logged in into my account. Let me know if you have a similar setup, or if you have different questions. Thanks, |
Hi @acoumb, sorry for the delay in getting back to you, and thank you for taking the time to investigate this in-depth at your end. I'll spin up a test similar to how you've presented yours and see what results I get with our account. Will keep you posted |
Hi @acoumb, so I've tested a stock installation similar to your video and found it doesn't produce the same error as I previously mentioned. So far so good. On further investigation I've found that we're using a forked version of the project which is enhanced to add Hubspot form submission functionality as well as the original contact creation/updates functionality. By having this extended capability it appears that an addition to scopes as defined at Line 38 in c72c931
communication_preferences.read and communication_preferences.read_write .
This addition was made after our site was already authorised with OAuth which may explain why we've not seen it up until now. I can tweak the code from our side to ensure that the original scopes are sent during OAuth, but then use a different scope during API requests. Out of interest, does the endpoint at Thanks, |
Sorry, talking complete rubbish with my assumption that I can send different scopes between OAuth and API requests, given API requests don't interact with the scopes themselves... 😅 |
I've been able to workaround this using a Private Access Token, but would be nice to return back to OAuth. Is there any way to adapt the scopes which the Umbraco endpoint sends to Hubspot? Or potentially self hosting our own copy of that endpoint? |
Trying to connect my Umbraco Forms Hubspot integration via OAuth and getting the error:
This is happening on an environment which has worked in the past. As
https://hubspot-forms-auth.umbraco.com
acts as the authentication / install URL I'm wondering if the issue is at your side? Unsure if anybody else having similar issues?I cannot for the life of me find anything within Hubspot itself to find anything related to scopes.
I'm running Umbraco 13 (Umbraco.Forms.Integrations.Crm.Hubspot v4.0.1).
Thanks,
Andy
This item has been added to our backlog AB#49069
The text was updated successfully, but these errors were encountered: