mirror of
https://github.com/ilyakooo0/github-app.git
synced 2024-10-03 18:47:10 +03:00
Haskell API for authenticating as a GitHub App
src | ||
test | ||
.gitignore | ||
ChangeLog.md | ||
LICENSE | ||
package.yaml | ||
README.md | ||
Setup.hs | ||
stack.yaml |
Authenticate as a GitHub App
This library provides functions that help with authenticating as a GitHub App.
Use
- Register your App with GitHub to obtain an App ID and a private key.
- Using the data from the step above, create
AppAuth
. - For each installation of your app, get an
InstallationAuth
usingmkInstallationAuth
. - 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Ü.