-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Feature - Extend GitHub OAuth to Support GitHub Enterprise #1486
base: main
Are you sure you want to change the base?
Conversation
@devangtomar Thanks for the contrib! However, as we're looking to remove our own oauth client implementation in favour of some third party library (#1240), we're not going to invest a lot of energy in adding additional auth backends/features. The ETA for this is weeks more than months. That having been said, if you could add either E2E or unit tests to this PR, and the tests look sane (you probably have to mock GH OAuth!), we can merge this. If not, I'll leave this one open for other users' benefit. Additionally, if we get feedback from them that this is working as expected, and not breaking pre-existing stuff, I will consider merging it. |
Thanks @dokterbob for the review! I’ll add the test cases with GitHub OAuth mocks and commit the changes soon! 🙂 |
Hi @devangtomar, any chance you could work on this? :) |
@dokterbob Apologies for the delay! I’ve been busy lately but will pick this up over the weekend and update the PR. 🙂 |
Feature Enhancement: Extend GitHub OAuth to Support GitHub Enterprise
This feature enhancement extends the
GithubOAuthProvider
class to support GitHub Enterprise environments, allowing for greater flexibility and integration with custom GitHub domains.This is the implementation for the feature request I created yesterday: #1484
Key Changes:
OAUTH_GITHUB_CUSTOM_URL
andOAUTH_GITHUB_CUSTOM_API_URL
, enabling the setup of a custom GitHub domain and API. If not specified, This defaults to github.com if not specified.Benefits:
Please review the changes and provide feedback or approval. Let me know if there are any questions or further adjustments needed.