Skip to content

Commit

Permalink
Remove if statement for targets
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-lf committed Apr 25, 2024
1 parent 32d2d68 commit b713973
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Snowflake.Data/Core/Authenticator/OktaAuthenticator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit b713973

Please sign in to comment.