APIs & Integrations

rtabasca
Membre

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

Résolue

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 Solution acceptée
himanshurauthan
Solution
Leader d'opinion | Partenaire solutions Elite
Leader d'opinion | Partenaire solutions Elite

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

Résolue

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

Voir la solution dans l'envoi d'origine

2 Réponses
dennisedson
Équipe de développement de HubSpot
Équipe de développement de HubSpot

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

Résolue

@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
Leader d'opinion | Partenaire solutions Elite
Leader d'opinion | Partenaire solutions Elite

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

Résolue

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