You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The installation_id is passed to the webhook payload. But it can also be retrieved through REST API, for apps that doesn't use webhooks. (i.e background processes).
The installation id can be retrieved through these endpoints, depending on the org and the user:
GET /users/{username}/installation
GET /repos/{owner}/{repo}/installation
GET /orgs/{org}/installation
GET /app/installations
These endpoints need to be accessed using jwt, similar to how we handle get_installation_access_token. So it would be great if gidgethub can provide this abstraction too.
For authenticating as a GitHub App, we need to have the app's
installation_id
.https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-an-installation-access-token-for-a-github-app#generating-an-installation-access-token
The
installation_id
is passed to the webhook payload. But it can also be retrieved through REST API, for apps that doesn't use webhooks. (i.e background processes).The installation id can be retrieved through these endpoints, depending on the org and the user:
GET /users/{username}/installation
GET /repos/{owner}/{repo}/installation
GET /orgs/{org}/installation
GET /app/installations
These endpoints need to be accessed using
jwt
, similar to how we handleget_installation_access_token
. So it would be great if gidgethub can provide this abstraction too.https://gidgethub.readthedocs.io/en/latest/apps.html#gidgethub.apps.get_installation_access_token
The text was updated successfully, but these errors were encountered: