Skip to content

Commit 07f9c3b

Browse files
authored
update the deprecated openURL(:) api to openURL(:options:completionHandler) (#5354)
* update deprecated url apis * update
1 parent 3505df5 commit 07f9c3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/client/Microsoft.Identity.Client/Platforms/iOS/Broker/iOSBroker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private Dictionary<string, string> CreateBrokerRequestDictionary(
181181
[System.Diagnostics.CodeAnalysis.SuppressMessage("Interoperability", "CA1422:Validate platform compatibility", Justification = "<Pending>")]
182182
public void HandleInstallUrl(string appLink)
183183
{
184-
DispatchQueue.MainQueue.DispatchAsync(() => UIApplication.SharedApplication.OpenUrl(new NSUrl(appLink)));
184+
DispatchQueue.MainQueue.DispatchAsync(() => UIApplication.SharedApplication.OpenUrl(new NSUrl(appLink), new UIApplicationOpenUrlOptions(), null));
185185

186186
throw new MsalClientException(
187187
MsalError.BrokerApplicationRequired,

src/client/Microsoft.Identity.Client/Platforms/iOS/EmbeddedWebview/WKWebNavigationDelegate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public override void DecidePolicy(WKWebView webView, WKNavigationAction navigati
4343

4444
#pragma warning disable CA1422 // Validate platform compatibility
4545
DispatchQueue.MainQueue.DispatchAsync(
46-
() => UIApplication.SharedApplication.OpenUrl(new NSUrl(requestUrlString)));
46+
() => UIApplication.SharedApplication.OpenUrl(new NSUrl(requestUrlString), new UIApplicationOpenUrlOptions(), null));
4747
#pragma warning restore CA1422 // Validate platform compatibility
4848
_authenticationAgentUIViewController.DismissViewController(true, null);
4949
decisionHandler(WKNavigationActionPolicy.Cancel);

0 commit comments

Comments
 (0)