I have a large customer that is migrating to GHE soon and I’m figuring out how to allow them to continue using my GitHub App https://pullreminders.com. To my knowledge, they do not plan on hosting the GitHub Enterprise instance behind a firewall.
Here’s what I think I need to do:
- Have the customer create a “Pull Reminders” GitHub App in their GHE instance and save the following info from their GHE instance in my database: hostname, client id, client secret, GitHub App id, GitHub private key.
- Create a special login flow for them on my website (ie. pullreminders.com/enterprise-login) where they first enter their GHE hostname so I can send them through the OAuth flow pointed at their GHE instance
- My apps API requests for this customer will use the GitHub App id and private key generated in their GHE instance for generating JWTs, an the the hostname, client id/secret from their GHE instance for making requests.
I’d appreciate guidance on this. I am looking to do this in the near-term and am happy to do a detailed write-up and share back on how I get this all to work.