How to customize the redirect URL when registering a Github App? #61238
Replies: 5 comments 6 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
-
I am also running into this. Some notes:
I am currently trying to figure out a way how to automate this kind of... my best guess is to first try user authorization and then after having the user you can check whether the user already installed the app and if not redirect to the installation. |
Beta Was this translation helpful? Give feedback.
-
@pieterbreed did you get any workaround for this. I am also in a similar scenario where I want to redirect to 2nd callback url after user authorizes app installation but it always redirects to the first callback url. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Did anyone find any fix for this? I have tried several things but could not find anything till now, essentially for the subsequent redirect when the user already has the app installed :( |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I have a registered Github App and in our app we request that users install the app to their account. We do so by presenting our users with a link to
github.com/apps/<our-app-name>/installations/new?state=<some-stuff>
.We have the setting ENABLED for
Request user authorization (OAuth) during installation
, so after making a choice of account, the user is presented with a page titledInstall & Authorize <our-app-name>
and at the bottom, below theInstall & Authorize
button, it has this text:Next: you'll be redirected to https://<our-prod-domain-name>/api/external/github-callback
.My question is this: how can I customize that URL during development? I depend on the parameters that URL receives to complete the authorization flow, but during development, that call goes to production and not to localhost.
Beta Was this translation helpful? Give feedback.
All reactions