Skip to content

feat: Add support for GitHub Enterprise authentication #3422

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

Merged
merged 1 commit into from
Aug 9, 2022
Merged

Conversation

kylecarbs
Copy link
Member

This was manually tested with GitHub Enterprise v3.6.0-rc1.

This was manually tested with GitHub Enterprise v3.6.0-rc1.
@kylecarbs kylecarbs requested a review from bpmct August 9, 2022 00:55
@kylecarbs kylecarbs requested a review from ammario as a code owner August 9, 2022 00:55
@kylecarbs kylecarbs self-assigned this Aug 9, 2022
Copy link
Member

@ammario ammario left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs LGTM

Copy link
Member

@bpmct bpmct left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sensible to me

@@ -429,6 +429,39 @@ func TestServer(t *testing.T) {
cancelFunc()
<-serverErr
})
t.Run("GitHubOAuth", func(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so this is an entirely new test for all GitHub OAuth?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup! The OAuth callback code itself is tested quite extensively in the other handler, so this just ensures it enables properly, and does a correct callback URL for Enterprise.

@kylecarbs kylecarbs merged commit f62e1ed into main Aug 9, 2022
@kylecarbs kylecarbs deleted the ghenterprise branch August 9, 2022 01:49
@coder coder deleted a comment from OlgaKhmelevskaya Aug 11, 2022
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.

4 participants