From f29be924b3d220976b594c56d11dad5ae79df63d Mon Sep 17 00:00:00 2001 From: Dharshan BJ Date: Fri, 1 Nov 2024 13:38:43 -0700 Subject: [PATCH] update the deprecated openURL(:) api to openURL(:options:completionHandler) (#4980) * update the api openURL(:) to open(:options:completionHandler) as openURL(:) is deprecated --- .../Microsoft.Identity.Client/Platforms/iOS/Broker/iOSBroker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/Microsoft.Identity.Client/Platforms/iOS/Broker/iOSBroker.cs b/src/client/Microsoft.Identity.Client/Platforms/iOS/Broker/iOSBroker.cs index 2099bcefae..3e5177daa8 100644 --- a/src/client/Microsoft.Identity.Client/Platforms/iOS/Broker/iOSBroker.cs +++ b/src/client/Microsoft.Identity.Client/Platforms/iOS/Broker/iOSBroker.cs @@ -219,7 +219,7 @@ private async Task InvokeIosBrokerAsync(Dictionary brokerPayload () => iOSBrokerConstants.BrokerPayloadPii + paramsAsQuery, () => iOSBrokerConstants.BrokerPayloadNoPii + brokerPayload.Count); - DispatchQueue.MainQueue.DispatchAsync(() => UIApplication.SharedApplication.OpenUrl(url)); + DispatchQueue.MainQueue.DispatchAsync(() => UIApplication.SharedApplication.OpenUrl(url, new UIApplicationOpenUrlOptions(), null)); using (_logger.LogBlockDuration("waiting for broker response")) {