From 10b3a4cfb3f021694e1fdd457c62f0681617edf6 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Mon, 22 Jan 2024 22:39:10 +1100 Subject: [PATCH] remove redundant string.IsNullOrEmpty(authorityUrl) (#4538) --- .../Platforms/Features/RuntimeBroker/WamAdapters.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/Microsoft.Identity.Client/Platforms/Features/RuntimeBroker/WamAdapters.cs b/src/client/Microsoft.Identity.Client/Platforms/Features/RuntimeBroker/WamAdapters.cs index 2ebd7c0b85..b5bbd65392 100644 --- a/src/client/Microsoft.Identity.Client/Platforms/Features/RuntimeBroker/WamAdapters.cs +++ b/src/client/Microsoft.Identity.Client/Platforms/Features/RuntimeBroker/WamAdapters.cs @@ -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;