Open shevron opened 4 years ago
Note this: https://github.com/PyGithub/PyGithub/issues/828 issue exists for PyGithub and even has an open pull request, but this seems to focus on OAuth apps which is not what we need and does not seem to handle GitHub Apps that are not OAuth based (OAuth apps are good for an app authenticating as a GitHub user rather than as an app that has access to an org/repo).
metastore-lib is likely to be installed as a GitHub App for many users. For this reason, we should probably do better to support GitHub App Installation access tokens out of the box.
This requires supporting a more complex flow than just "give me a token and go" which is good for personal access tokens. This flow is currently not supported by PyGitHub so we need to implement it ourselves and just pass the resulting access token to PyGitHub:
Acceptance Criteria
Technical Flow of authenticating as an app