Skip to content

Implement auth service switching for GitHub Enterprise - #2468

Merged
Rachel Macfarlane (RMacfarlane) merged 4 commits into
microsoft:mainfrom
kabel:feature/ghe
May 7, 2021
Merged

Rachel Macfarlane (RMacfarlane) merged 4 commits into
microsoft:mainfrom
kabel:feature/ghe

Conversation

@kabel

@kabel Kevin Abel (kabel) commented Feb 5, 2021 •

Copy link
Copy Markdown
Contributor

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

Deleted user (ghost) commented Feb 5, 2021 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@kabel

Copy link
Copy Markdown
Contributor Author

Local testing results:

image

image

@mew1033

Copy link
Copy Markdown

Awesome!

@lupalby

Copy link
Copy Markdown

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

@vortechs2000 AJ Lewis (vortechs2000) left a comment

Copy link
Copy Markdown

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
Copy Markdown

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

@selcukduman

Copy link
Copy Markdown

Everyone in our team is now using this since it was posted by Kevin Abel (@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
Copy Markdown

+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
Copy Markdown

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.

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
Copy Markdown

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

@kabel

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown

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.

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