Can we set up multiple Redirect URLs in one app? The reason we wanted to do this is our app has different domains/subdomains in different countries, and it would be super helpful if we can also set up the sandbox to work with different testing environments which each has its own domain.
Assuming I understood your requirements, there is a possible work-around.
As part of the original authorization request, you can append state. That state is returned with the authorization code. The state could be used as a discriminator to redirect another domain/subdomain.
I haven’t tried this myself but this should work.
You can definitely use the state parameter to pass some sort of “flag” (or whatever - it’s literally just a string value). On your backend, you could read the parameter, and redirect as needed on your own logic, sure!
I’d need to know a bit more about your different environments and how you intend to test to better answer this however there are quite a few options available to you for testing.
Unfortunately, configuring multiple redirect URLs isn’t currently possible. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team.