Skip to content

GitHub App Authentication #79

Description

@fennifith

We need to set up a GitHub App for PFP/hoof so that the backend can authenticate with the GH API independently and create its own commits in the playfulprogramming repo.

For authentication: See Generating a JSON Web Token (JWT) for a GitHub App and Authenticating as a GitHub App Installation

  • Create a GitHub App for hoof
  • Add secrets for the app credentials
  • Install the app in playfulprogramming
  • Obtain an auth token from the app for querying the API (and use it in client.ts - but keep GITHUB_TOKEN for local dev?)
    • Use GET /orgs/{org}/installation to obtain the installation ID
    • We'll need to refresh the auth token on any call if it expires, as it only lasts for 1 hour (this probably needs to be done in middleware)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions