File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,9 @@ public static class GitHubConstants
2727 public const string GitHubOptHeader = "X-GitHub-OTP" ;
2828
2929 /// <summary>
30- /// Minimum GitHub Enterprise version that supports OAuth authentication with GCM Core.
30+ /// Minimum GitHub Enterprise Server version that supports OAuth authentication with GCM Core.
3131 /// </summary>
32- // TODO: update this with a real version number once the GCM OAuth application has been deployed to GHE
33- public static readonly Version MinimumEnterpriseOAuthVersion = new Version ( "99.99.99" ) ;
32+ public static readonly Version MinimumOnPremOAuthVersion = new Version ( "3.2" ) ;
3433
3534 /// <summary>
3635 /// The version string returned from the meta API endpoint for GitHub AE instances.
Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ internal async Task<AuthenticationModes> GetSupportedAuthenticationModesAsync(Ur
269269 // Assume all GHAE instances have the GCM OAuth application deployed
270270 modes |= AuthenticationModes . OAuth ;
271271 }
272- else if ( Version . TryParse ( metaInfo . InstalledVersion , out var version ) && version >= GitHubConstants . MinimumEnterpriseOAuthVersion )
272+ else if ( Version . TryParse ( metaInfo . InstalledVersion , out var version ) && version >= GitHubConstants . MinimumOnPremOAuthVersion )
273273 {
274274 // Only GHES versions beyond the minimum version have the GCM OAuth application deployed
275275 modes |= AuthenticationModes . OAuth ;
You can’t perform that action at this time.
0 commit comments