question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AcquireTokenAsync: Safari cannot open the page because the address is invalid

See original GitHub issue

Microsoft.Identy.Client 1.1.4-preview0002 Xamarin.Forms.3.2.0.871581 netstandard2.0 iPhone 8 Plus iOS 12.0 Simulator

  • I am using Xamarin, have the MSAL flow working in Android and am now trying to get it doing the same for iOS.
  • I call “AcquireTokenAsync”
  • The login.microsoftonline.com dialog opens correctly.
  • I enter the user destails correctly and sign in.
  • pca opens the error dialog “Safari cannot open the page because the address is invalid.”

I have configured the following steps: a) the pca RedirectUri has been set to “msal” + AppID + @“😕/auth”; (the same as Android) b) AppDelegate.cs has the OpenUrl override added (a breakpoint here never gets hit btw) c) Entitlements.plist has had “keychain-access-groups” group added with my bundle identifier. d) iOS Bundle Signing, Manual Provisioning, Custom Entitlements have been set to Entitlements.plist e) The .csproj in a text editor has these lines:

    <CodesignKey>iPhone Developer</CodesignKey>
    <CodesignProvision>
    </CodesignProvision>
    <CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
    <CodesignExtraArgs />
    <CodesignResourceRules />

Any ideas what I am doing wrong?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jennyf19commented, Oct 9, 2018

@RhomGit - Thanks for the additional info. Are you setting up the UIParent correctly for iOS and Android?

Here’s an example for iOS and one for Android.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix When Safari Cannot Open a Page Because the ...
If Safari says the address is invalid for every page you visit, try loading something on a different device or in a different...
Read more >
Safari cannot open the page because the a…
Perhaps the address you are entering in Safari's URL field is not valid, due to misspelling it for example. If Safari on Mac...
Read more >
Azure AD B2C for Xamarin.forms "Safari cannot open the ...
Identity library, copying the URL it was trying to load from the logs, and pasting it into Safari.
Read more >
Safari error: "Safari cannot open this page because address is ...
The error "Safari cannot open this page because address is invalid" usually occurs due to multiple rounds of continuous installing and uninstalling the...
Read more >
Safari Cannot Open The Page Because The Address Is Invalid
The Genuine Safari error indicates that the 'Safari cannot open the page because the address is invalid' has occurred due to real issues....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found