I am trying to use this example: https://github.com/Azure-Samples/active-directory-b2c-xamarin-native
It have went through the tutorial 5 times and it worked with the existing fabrikamb2c but when I try to use my own b2c tenant I get errors when clicking sign in on both iOS (Safari cannot open the page because the address in invalid) and Android (blank screen) when it calls IPublicClientApplication.AcquireTokenInteractive()
For iOS - From the PublicClientApplicationBuilder logging, it's trying to go to this url:
but if I use this format (updated from https://docs.microsoft.com/en-us/azure/active-directory-b2c/user-flow-overview) it works
I don't understand why AcquireTokenInteractive() in code is putting the userflow name (B2C_1_results_mobile_app_staging) in the path part of the url while the other one puts it as querystring parameter for p...
I have the iOS Redirect URL set up in the app registration's authentication:
and here is the userflow:
Here is my pinfo.list
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>com.yourcompany.UserDetailsClient</string>
<key>CFBundleURLSchemes</key>
<array>
<string>msalxxxxxxxx-yyyy-40c1-804e-13190d66ccc6</string>
</array>
</dict>
</array>
anyway, any guidance would be appreciated I am quite confused by all this.. been reading docs for a few days it's not "clicking" for me. thank you.
b2clogin.com
.Check docs.microsoft.com/en-us/azure/active-directory-b2c/b2clogin . You could also post the issue to github.com/Azure-Samples/active-directory-b2c-xamarin-native/… . – Lucas Zhang