Documentation
¶
Overview ¶
Package githubapp signs JSON Web Tokens for the Devsy GitHub App and loads the app's RSA private key. The hack/ tools that authenticate as the app share this code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateJWT ¶
GenerateJWT returns an RS256-signed JWT for the GitHub App with the given client ID. iat is backdated by issuedAtSkew and exp is maxExpiration after now.
func LoadPrivateKey ¶
func LoadPrivateKey(path, contents string) (*rsa.PrivateKey, error)
LoadPrivateKey parses the app's PEM private key. contents takes precedence over path; path is read from disk only when contents is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.