Maintainer | Brandon Chinn <brandonchinn178@gmail.com> |
---|---|
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Definitions for handling authentication with the GitHub REST API.
Synopsis
- data Token
- fromToken :: Token -> ByteString
- getJWTToken :: EncodeSigner -> AppId -> IO Token
- loadSigner :: FilePath -> IO EncodeSigner
Documentation
The token to use to authenticate with GitHub.
fromToken :: Token -> ByteString Source #
Helpers for using JWT tokens with the GitHub API
getJWTToken :: EncodeSigner -> AppId -> IO Token Source #
Create a JWT token that expires in 10 minutes.
loadSigner :: FilePath -> IO EncodeSigner Source #
Load a RSA private key as a Signer from the given file path.