Haskell API for authenticating as a GitHub App
Go to file
2020-01-04 16:20:12 +03:00
src Made it compile 2020-01-04 16:20:12 +03:00
test Create the first version of the library (#2) 2018-08-10 01:46:02 +03:00
.gitignore Made it compile 2020-01-04 16:20:12 +03:00
ChangeLog.md Create the first version of the library (#2) 2018-08-10 01:46:02 +03:00
LICENSE Create the first version of the library (#2) 2018-08-10 01:46:02 +03:00
package.yaml Made it compile 2020-01-04 16:20:12 +03:00
README.md Add README 2019-05-27 20:08:27 +03:00
Setup.hs Create the first version of the library (#2) 2018-08-10 01:46:02 +03:00
stack.yaml Made it compile 2020-01-04 16:20:12 +03:00

Authenticate as a GitHub App

This library provides functions that help with authenticating as a GitHub App.

Use

  1. Register your App with GitHub to obtain an App ID and a private key.
  2. Using the data from the step above, create AppAuth.
  3. For each installation of your app, get an InstallationAuth using mkInstallationAuth.
  4. Use the executeAppRequest function to execute requests. Behind the scenes, this function exchanges the installation auth token for a regular access token, caches it, and renews as needed.

See serokell/github-ops-access for a real-life example use.

About Serokell

This library is maintained and funded with ❤️ by Serokell. The names and logo for Serokell are trademark of Serokell OÜ.