Skip to content

Commit

Permalink
remove redundant string.IsNullOrEmpty(authorityUrl) (#4538)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Jan 22, 2024
1 parent 574c98e commit 10b3a4c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ private static MsalTokenResponse ParseRuntimeResponse(

// workaround for bug https://identitydivision.visualstudio.com/Engineering/_workitems/edit/2047936
// i.e. environment is not set correctly in multi-cloud apps and home_environment is not set
if (authenticationRequestParameters.AppConfig.MultiCloudSupportEnabled && string.IsNullOrEmpty(authorityUrl))
if (authenticationRequestParameters.AppConfig.MultiCloudSupportEnabled)
{
IdToken idToken = IdToken.Parse(authResult.RawIdToken);
authorityUrl = idToken.ClaimsPrincipal.FindFirst("iss")?.Value;
Expand Down

0 comments on commit 10b3a4c

Please sign in to comment.