Skip to content

Conversation

@mjcheetham
Copy link
Contributor

Add support for detecting GitHub AE (GHAE) and enabling the OAuth authentication mode with the GitHub provider.

We assume that all instances of GHAE have the GCM OAuth application deployed.

https://docs.github.com/en/github-ae@latest/admin/overview/about-github-ae

Add support for detecting GitHub AE (GHAE) and enabling the OAuth
authentication mode with the GitHub provider.

https://docs.github.com/en/github-ae@latest/admin/overview/about-github-ae
/// Minimum GitHub Enterprise version that supports OAuth authentication with GCM Core.
/// </summary>
// TODO: update this with a real version number once the GCM OAuth application has been deployed to GHE
public static readonly Version MinimumEnterpriseOAuthVersion = new Version("99.99.99");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Once we know which version of GHES has the OAuth app deployed, we can update this constant too.

Copy link
Contributor

Choose a reason for hiding this comment

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

Will this ever cause confusion since "Enterprise" is a part of the name of three different GitHub products? MinimumOnPremOAuthVersion maybe? (This may be pointless bikeshedding on my part - the question is genuine but not particularly important.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Feel free to submit the rename PR to that OnPrem suggestion ;)

Copy link
Contributor

Choose a reason for hiding this comment

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

Ha 😁

Copy link
Contributor

Choose a reason for hiding this comment

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

Whoops, can't resolve, since you had left this as a note to yourself.

@mjcheetham mjcheetham added enhancement New feature or request host:github Specific to the GitHub host provider auth:oauth Specific to OAuth2 authentication labels May 12, 2021
@mjcheetham mjcheetham merged commit 5dc3657 into git-ecosystem:master May 13, 2021
@mjcheetham mjcheetham deleted the ghae branch May 13, 2021 10:54
@mjcheetham mjcheetham mentioned this pull request May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auth:oauth Specific to OAuth2 authentication enhancement New feature or request host:github Specific to the GitHub host provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants