Skip to main content
Question

Support multiple redirect urls per oauth app

  • May 22, 2025
  • 4 replies
  • 35 views

Forum|alt.badge.img

There are multiple instances of our application in production and we use oauth to connect to box. With only one redirect URI per app, it becomes difficult to maintain.

Also, with the recent announcement "[ACTION REQUIRED] Box application redirect URL changes that affect your app" of having mandatory redirect_uri this is even more limiting.

Is there any way to contact support and add multiple redirect urls for an oauth app?

Are there any approaches to solve this problem?

4 replies

Forum|alt.badge.img

Hi there,

The ability to add multiple redirects to an OAuth 2 application is being reviewed for potential inclusion into the application creation process, but at the current time there isn't a timeline on when / if that will be added. 

With that said, here are the two main options that I would suggest: 

  1. Using the state parameter: When you redirect a user as part of the login flow, there is a state parameter that may be set to pass information through the login / authorization flow (listed in the query params here). If you want to use a single application what you could potentially do is have all of your application types (dev / QA / prod) all use the same redirect URI but pass a state parameter through to indicate which environment should be used. You can then route to the proper application logic at that point. This is assuming that your environments are set up in a way to support this.
  2. Using separate applications: The other option would be to separate out each environment into its own OAuth 2 application. Personally this is the way I would go as it maintains a good separation of concerns, and ensures that your keys / client ID / client secret for your production application is the most secure as they're not embedded within dev / QA apps as well. 

I know it's not ideal at the current time, but we'll continue working on improving the process to make the app management process easier. 

- Jon


Forum|alt.badge.img

Yes, please add multiple redirect url support. It is almost impossible to migrate in a smooth way to a new redirect url for an application that is installed on thousands of devices.


Forum|alt.badge.img

Any update on this feature. it is quite common to use the same app on multiple domains; when do we expect the update where we can add multiple redirect URIs in box developer app console for a single set of consumer key and secret.


Forum|alt.badge.img

Is there any update now? Would really like to have support for multiple redirect uri's.