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
27
27
public const string GitHubOptHeader = "X-GitHub-OTP" ;
28
28
29
29
/// <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.
31
31
/// </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" ) ;
34
33
35
34
/// <summary>
36
35
/// 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
269
269
// Assume all GHAE instances have the GCM OAuth application deployed
270
270
modes |= AuthenticationModes . OAuth ;
271
271
}
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 )
273
273
{
274
274
// Only GHES versions beyond the minimum version have the GCM OAuth application deployed
275
275
modes |= AuthenticationModes . OAuth ;
You can’t perform that action at this time.
0 commit comments