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

rtabasca
Member

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?

2 Replies 2
dennisedson
Community Manager

@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?

Thanks,

Dennis


We are excited to announce that the Community will be launching a weekly newsletter on November 2, 2020!
Sign up today!
himanshurauthan
Key Advisor | Platinum Partner

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