Oauth The redirect_uri must use https for security reasons

oauth

#1

Hello please help me with this error.
When I try to authorize my app in hubspot portal I get this error

The redirect_uri must use https for security reasons.

I am getting this error only recently. I was able to do my auths without https so far. Is there something changed in hubspot policies? Is https now required? Or is there something else?


#2

Hi @Hayk

It’s always been intended that the redirect use https, but it wasn’t originally enforced up until a change a few weeks ago.


#3

I got this error too. So I appended the http to be https://www.hubspot.com and now I’m seeing this:
An error occurred while validating the integration authorization.
Any ideas?


#4

@johnhodge are you seeing that error before you pick a portal? Or after picking a portal instead of getting the authorize button? Can you send me the full authorize URL you’re using?


#5

I see that after I pick the portal. Here’s the URL I’m using:
https://app.hubspot.com/oauth/authorize?client_id=d59b9caf-2768-4fad-a530-19662ad79c81&scope=contacts%20automation&redirect_uri=https://www.hubspot.com


#6

@johnhodge can you double check the client_id that you’re using? The id you have in that URL doesn’t appear to be valid.