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


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 where Michael changes depending on the user, how can I define the redirect URI to accept this?

2 Replies 2
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?



We are excited to announce that the Community will be launching a weekly newsletter on November 2, 2020!
Sign up today!
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 -


Hope this helps,


Digital Marketing & Inbound Expert In Growth Hacking Technology