diff --git a/src/shared/GitLab/GitLabHostProvider.cs b/src/shared/GitLab/GitLabHostProvider.cs index eda6e2f0f..545e87a69 100644 --- a/src/shared/GitLab/GitLabHostProvider.cs +++ b/src/shared/GitLab/GitLabHostProvider.cs @@ -41,9 +41,6 @@ public override bool IsSupported(InputArguments input) return false; } - // We do not support unencrypted HTTP communications to GitLab, - // but we report `true` here for HTTP so that we can show a helpful - // error message for the user in `CreateCredentialAsync`. if (!StringComparer.OrdinalIgnoreCase.Equals(input.Protocol, "http") && !StringComparer.OrdinalIgnoreCase.Equals(input.Protocol, "https")) { @@ -94,13 +91,6 @@ public override async Task GenerateCredentialAsync(InputArguments i { ThrowIfDisposed(); - // We should not allow unencrypted communication and should inform the user - if (StringComparer.OrdinalIgnoreCase.Equals(input.Protocol, "http")) - { - throw new Trace2Exception(Context.Trace2, - "Unencrypted HTTP is not supported for GitHub. Ensure the repository remote URL is using HTTPS."); - } - Uri remoteUri = input.GetRemoteUri(); AuthenticationModes authModes = GetSupportedAuthenticationModes(remoteUri);