Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Add GitHub Enterprise Server support - #286

Merged
Vineeth Thomas Alex (vineeththomasalex) merged 29 commits into
mainfrom
user/vineeththomasalex/GHES_3
Jan 11, 2024
Merged

Add GitHub Enterprise Server support#286
Vineeth Thomas Alex (vineeththomasalex) merged 29 commits into
mainfrom
user/vineeththomasalex/GHES_3

Conversation

@vineeththomasalex

@vineeththomasalexVineeth Thomas Alex (vineeththomasalex) commented Nov 27, 2023

Copy link
Copy Markdown
Contributor

Summary of the pull request

This PR contains the following changes:

  • Adds GitHub Enterprise Server (GHES) v3 Support (supported version determined by Octokit)

  • Adds LoginUI page for GHES flow to enter PAT

  • Refactors LoginUIController flow to be more encapsulated into Pages

  • Refactors CredentialVault to allow test configuration

  • Adds Unit Tests for DeveloperID components

  • Adds Functional tests for restoring and using saved credentials for repository query

  • Catches (and logs) a crash during Startup due to bad saved credentials

  • Also, enables multi-user support for widgets (requires Widget UI update in a follow-up PR)

References and relevant issues

microsoft/devhome#825
#235

LoginUI flow for GHES

Untitled video - Made with Clipchamp
Not uploading gif of 2nd page since it has personal info. Please try it out yourself.

Validation steps performed

Ran old and new tests, and manually ran through login flow, widget and setup flow.

PR checklist

  • Closes #xxx
  • [X ] Tests added - Currently fails due to lack of Env variables. Looking into this.
  • Documentation updated

@krschauKristen Schau (krschau) removed this from the DHGE v0.7 milestone Nov 27, 2023
Comment threadsrc/GitHubExtension/Client/GithubClientProvider.cs Outdated
Comment threadsrc/GitHubExtension/Client/Validation.cs Outdated
Comment threadsrc/GitHubExtension/DeveloperId/CredentialVault.cs Outdated
Comment threadsrc/GitHubExtension/DeveloperId/CredentialVault.cs Outdated
Comment threadsrc/GitHubExtension/DeveloperId/DeveloperIdProvider.cs Outdated
Comment threadsrc/GitHubExtension/Client/Validation.cs Outdated
Comment threadsrc/GitHubExtension/DeveloperId/CredentialVault.cs Outdated
Comment threadsrc/GitHubExtension/DeveloperId/LoginUIController.cs Outdated
@vineeththomasalex
Vineeth Thomas Alex (vineeththomasalex) dismissed jamespik’s stale reviewJanuary 11, 2024 21:51

Received permission to dismiss review from Jamespik

Eric Johnson (EricJohnson327) pushed a commit that referenced this pull request Jan 18, 2024
* Explicitly disallow multiple accounts on GitHub extension
* Fix constructor bug
* Tested GHES
* Stashing
* Basic flow works
* Validation added
* Minor updates
* Minor Widget update
* SearchManager minor update
* Fixed LoginUI
* Created separate states for pages
* Added CredentialVault Tests
* Added LoginUI tests
* Added some tests
* Reverted Widget updates
* Fixed tests
* Revert changes to allow multi-user for tests
* PR Comments 1
* PR comments 2
* Ignore some tests in pipeline
* PR Comments 3
* PR Comments 4
* Minor update
* PR comments 6
* PR Comments 7
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Area-Account-Sign-InRelated to authenticating your GitHub account or anything related to sign-in

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extension requires too much OAuth permissions Dev Home GitHub extension should support Enterprise accounts

8 participants

@vineeththomasalex@dhoehna@bogdan-arsene@dkbennett@jamespik@AmelBawa-msft@ssparach@krschau