Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub: support GitHub apps #1071

Closed
bastienbeurier opened this issue Oct 4, 2023 · 1 comment · Fixed by #1089
Closed

GitHub: support GitHub apps #1071

bastienbeurier opened this issue Oct 4, 2023 · 1 comment · Fixed by #1089
Assignees
Labels
api Related to supporting new APIs.

Comments

@bastienbeurier
Copy link
Member

bastienbeurier commented Oct 4, 2023

We already support OAuth apps for GitHub, but the more modern way to use the API is GitHub apps.

Auth docs for GitHub apps: https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app

@bastienbeurier bastienbeurier added the api Related to supporting new APIs. label Oct 4, 2023
@bastienbeurier
Copy link
Member Author

@khaliqgant I was testing the GIthub App flow on another app to get clues on how they were reconciling the pro/post installation context, and it turns out they use a state parameter!!!! If that really works, it would solve a lot of our headaches:

Image

khaliqgant added a commit that referenced this issue Oct 9, 2023
khaliqgant added a commit that referenced this issue Oct 9, 2023
khaliqgant added a commit that referenced this issue Oct 9, 2023
khaliqgant added a commit that referenced this issue Oct 10, 2023
khaliqgant added a commit that referenced this issue Oct 10, 2023
khaliqgant added a commit that referenced this issue Oct 10, 2023
khaliqgant added a commit that referenced this issue Oct 10, 2023
khaliqgant added a commit that referenced this issue Oct 10, 2023
khaliqgant added a commit that referenced this issue Oct 10, 2023
khaliqgant added a commit that referenced this issue Oct 10, 2023
* [gh-#1071] app flow initial implementation

* [gh-#1071] github app auth initial version

* [gh-#1071] symlink logo

* [gh-#1071] use more streamlined oauth flow with modal and closing after setup url callback

* [gh-#1071] github-app instead of github_app

* [gh-#1071] update test params

* [gh-#1071] app token refresh logic

* [gh-#1071] remove unused

* [gh-#1071] remove unused

* [gh-#1071] better error message

* [gh-#1071] fix auth call update

* [gh-#1071] add AppCredentials type

* [gh-#1071] clean up getRecords call

* [gh-#1071] add accessToken and expiresAt for app credentials
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Related to supporting new APIs.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants