diff --git a/Snowflake.Data/Core/Authenticator/OktaAuthenticator.cs b/Snowflake.Data/Core/Authenticator/OktaAuthenticator.cs index 1a786fd59..5772034e4 100644 --- a/Snowflake.Data/Core/Authenticator/OktaAuthenticator.cs +++ b/Snowflake.Data/Core/Authenticator/OktaAuthenticator.cs @@ -80,11 +80,7 @@ async Task IAuthenticator.AuthenticateAsync(CancellationToken cancellationToken) s_logger.Debug("step 4: Get SAML response from SSO"); var samlRestRequest = BuildSamlRestRequest(ssoUrl, onetimeToken); samlRawResponse = await session.restRequester.GetAsync(samlRestRequest, cancellationToken).ConfigureAwait(false); -#if NETFRAMEWORK || NETSTANDARD2_0 _rawSamlTokenHtmlString = await samlRawResponse.Content.ReadAsStringAsync().ConfigureAwait(false); -#else - _rawSamlTokenHtmlString = await samlRawResponse.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); -#endif s_logger.Debug("step 5: Verify postback URL in SAML response"); VerifyPostbackUrl();