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

Implement auth service switching for GitHub Enterprise #2468

Merged
merged 4 commits into from
May 7, 2021

Conversation

kabel
Copy link
Contributor

@kabel kabel commented Feb 5, 2021

Uses a new, proposed alternative authentication provider (switch) to handle authentication and API queries.

Fixed #1793, #2282.

Depends on microsoft/vscode#115940

Edit: Lastest rebase includes a different approach to the solution that allows both authentication providers to be used simultaneously. Which to query is determined by the remote matching the configured GHE URI.

@ghost
Copy link

ghost commented Feb 5, 2021

CLA assistant check
All CLA requirements met.

@kabel
Copy link
Contributor Author

kabel commented Feb 5, 2021

Local testing results:

image

image

@mew1033
Copy link

mew1033 commented Feb 9, 2021

Awesome!

@lupalby
Copy link

lupalby commented Feb 13, 2021

I was able to test the changes using the configuration here and I can confirm that it works very well with the GHE instance we use at work.
Great work!

Base automatically changed from master to main February 17, 2021 21:41
Copy link

@vortechs2000 vortechs2000 left a comment

Choose a reason for hiding this comment

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

This working well for me after following the instructions from #1793 (comment):

  • GHE: 2.22
  • VSCode 1.53.2
  • macOS 10.15.7

@eschweighofer
Copy link

I was able to test the changes using #1793 and confirm it works very well with our GHE instance
Great work!

@selcukduman
Copy link

Everyone in our team is now using this since it was posted by @kabel. No issues since.
GHE:2.21.6
VS Code: stable channel, now on 1.54.3
OS: MacOS 11.2.3 & Windows 10 1909 (18363.1379)

We would love to see this merged as soon as possible.

@wbcustc
Copy link

wbcustc commented Apr 4, 2021

+1, would like to get this change reviewed and merged as soon as possible, the Github enterprise support is so important to us.

@selcukduman
Copy link

Are there any updates on this? We are using the beta version provided by kabel, but need to reinstall it with each plugin update. All is ok with the beta version so far.

kabel added 4 commits May 6, 2021 17:13
Uses a new, proposed alternative authentication provider (switch) to
handle authentication and API queries.

Fixed microsoft#1793, microsoft#2282.

Depends on microsoft/vscode#115940
Uses a field on the Remote to indicate which provider to use. The field compares the remote host to the GHE URI authority.
Requires node.js crypto (or browserify version) to do the md5 hash. Updates all interfaces and GraphQL queries to include the user email.
@mew1033
Copy link

mew1033 commented May 6, 2021

@kabel, any word from the vscode devs on getting this merged in? Thanks for building this feature!

@kabel
Copy link
Contributor Author

kabel commented May 6, 2021

any word from the vscode devs on getting this merged in? Thanks for building this feature!

You're welcome. No word from upstream. Microsoft must keep them busy.

@HieuNguyen202
Copy link

I'm using the workaround right now. But as soon as this PR gets merged, I'll introduce this feature to everyone in my team. Hopefully, it will go in soon.

@alexr00 alexr00 mentioned this pull request Feb 10, 2023
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.

Its possible connect to github enterprise
9 participants