Skip to content

Conversation

robbiemcmichael
Copy link
Contributor

This adds the ability to authenticate as a GitHub App and create an access token for an installation of the app.

Authenticating as a GitHub App uses a JWT instead of the usual OAuth tokens. Since the JWT can't be used for authentication on normal endpoints, I've created a separate type AppAuth so that the function type signatures can distinguish which authentication method is required.

I'm not sure what the policy is on implementing API previews since the APIs aren't stable. If the github package is only for the stable parts of the API, I might look into implementing some of the API previews as a separate package and features moved across to github as they become stable. I can separate the AuthMethod type class changes here into a new PR as that would allow alternative auth methods such as JWTs to be implemented in a separate package.

@robbiemcmichael
Copy link
Contributor Author

Closing this in favour of #365, I'll be implementing GitHub Apps support in a separate package for API previews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant