APIs & Integrations

rtabasca
Member

how I define redirecti uri for my Oauth flow if my domain changes dynamically?

SOLVE

I'm currently working on an integration with the HubSpot app and Oauth flow for a E-commerce platform, this platform changes its domain depending on the user logged so it could look like this Michael.platformname.store where Michael changes depending on the user, how can I define the redirect URI to accept this?

1 Accepted solution
himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

how I define redirecti uri for my Oauth flow if my domain changes dynamically?

SOLVE

Thank you @dennisedson for tagging me in. 🙂

 

Hi @rtabasca,

 

You can pass redirect_uri as your current URI in the authorization URL while initiating the OAuth.

 

More details here - https://developers.hubspot.com/docs/api/oauth-quickstart-guide

 

Hope this helps,

 

Digital Marketing & Inbound Expert In Growth Hacking Technology

View solution in original post

2 Replies 2
dennisedson
HubSpot Product Team
HubSpot Product Team

how I define redirecti uri for my Oauth flow if my domain changes dynamically?

SOLVE

@rtabasca ,  I am not sure of a graceful way to handle this. What is the reason that you would need a redirect to a different domain anyway?  Could you redirect to your domain?  @himanshurauthan , do you have any ideas?

himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

how I define redirecti uri for my Oauth flow if my domain changes dynamically?

SOLVE

Thank you @dennisedson for tagging me in. 🙂

 

Hi @rtabasca,

 

You can pass redirect_uri as your current URI in the authorization URL while initiating the OAuth.

 

More details here - https://developers.hubspot.com/docs/api/oauth-quickstart-guide

 

Hope this helps,

 

Digital Marketing & Inbound Expert In Growth Hacking Technology