Authorization, Token, and Refresh URL

I am working on a custom connector in microsoft flow that needs to know the Authorization, Token, and Refresh URL of my hubspot app. I don’t know where to find the Token and Refresh URLs and when I use the Authorization URL to try to connect to my hubspot account from flow it brings up a blank webpage when I am expecting it to bring up the authorization page.

I ended up finding a resource to get the access and refresh tokens, but my request is failing. Here is the screenshot of that…

Hi @lballard702 !

I hope you are well. I am wondering if you were able to find these resources of any use

Working with OAuth

OAuth Quickstart Guide

Managing Tokens

Thanks!

@dennisedson

I’ve been looking at the documentation. It seems like the authorization URL is incorrect. The initial screen after pinging HubSpot for access shows blank still. Here is the URL it is redirecting me too eventhough it’s not what I have included as my authorization code in flow which is different.

HubSpot redirect URL:

https://app.hubspot.com/oauth/authorize?client_id=5434758e-791e-4d2c-8191-aecb8fbd9516&redirect_uri=https://global.consent.azure-apim.net/redirect&scope=contacts?client_id=5434758e-791e-4d2c-8191-aecb8fbd9516&response_type=code&redirect_uri=https%3a%2f%2fglobal.consent.azure-apim.net%2fredirect&scope=contacts&state=5ec309b3-5243-4d74-a239-35db8c9cd529_msmanaged-na_azure-apim.net

Microsoft Flow URL:

https://app.hubspot.com/oauth/authorize?client_id=5434758e-791e-4d2c-8191-aecb8fbd9516&redirect_uri=https://global.consent.azure-apim.net/redirect&scope=contacts

I figured out that Microsoft Flow automatically appends the redirect url to the authorization url and that’s what the problem was. For anyone doing this in the future just make sure your authorization url in flow end with the client id and doesn’t have anything following it so that flow can create the link correctly.

Hi @lballard702

Can you expand a little more on exactly what you input into the 3 fields you asked about? Authorization, Token and Refresh URL’s specifically, I’m going around in circles.

Many thanks.