APIs & Integrations

rtabasca
Membro

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

resolver

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 Solução aceita
himanshurauthan
Solução
Autoridade no assunto | Parceiro Elite
Autoridade no assunto | Parceiro Elite

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

resolver

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

Exibir solução no post original

2 Respostas 2
dennisedson
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

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

resolver

@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
Solução
Autoridade no assunto | Parceiro Elite
Autoridade no assunto | Parceiro Elite

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

resolver

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