How do I trace back an GitHub installation to my app's multi tenant instance?

 I have a free standing multi tenant web application. I’m hoping to integrate with GitHub by using the Github Apps framework. I’ve managed to get the basic installation going and I get an installation_id back.

Now my problem is - how do I attach this installation_id to a tenant in my application? I suspect  it’s going to be through the Setup URL or the callback URL, however I can’t find any documentation on how to accomplish something like this in a secure manner.

Anybody have any pointers?

I’m not sure I understand the scenario you’re trying to support. Can you give some more details or an example?