AcquireTokenAsync: Safari cannot open the page because the address is invalid
See original GitHub issueMicrosoft.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:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
@stanleywailers : did you look at https://github.com/azure-samples/active-directory-xamarin-native-v2 ?