2
votes

Does Azure Active Directory B2C support any authentication mechanisms for mobile applications? I am planning to develop the application using NativeScript.

If not what is the best cross platform mobile framework to achieve authentication for Azure AD B2C?

2

2 Answers

3
votes

If you can integrate with azure mobile service. You can use the plugin https://github.com/PeterStaev/nativescript-azure-mobile-apps

0
votes

I was able to configure Azure Mobile Services using the Authentication/Authorization (Easy Auth) to use Azure AD B2C. Then using the nativescript-azure-mobile-apps plugin, it would open a Mobile Web View with a Login screen. Once I clicked the Register link, it allowed me to register and then redirected back to the phone with the JWT. Also, the login is fully working. There is just one problem. If I use the Cancel button in the Azure AD B2C page, the page states "Authorization is forbidden" with a white screen. Unfortunately, the Web View does not have a close button so the only way to get back to the app is using the phones back button. It can be confusing to the user.