Override setup URL during installation?

Is it possible to override the “Setup URL” value during the app installation? Some services allow providing a callback URL as a query param when initiating setup/installation, that way you can adjust where to redirect back to given context available in the application. For security reasons, the redirect URL still must appear in an allow list or match an allowable pattern, but otherwise provides a great deal of flexibility. In my case I find myself having to constantly adjust the “Setup URL” value while working on a development version of the GitHub app. Being able to use a URL like “https://github.com/apps/<my_app>/installations/new?setup_url=<my_url>” would be fantastic, but I haven’t found any documentation indicating how to do it, if the feature exists at all. Any help would be much appreciated. Thanks!

2 Likes