Authentication via Azure AD B2C and HoloLens app

Hello everyone !

I’m currently trying to implement an authentication system in my HoloLens 2 app, via Azure AD B2C. After many trials and errors, I finally managed to install the right version of Microsoft.Identity.Client.dll (MSAL .Net) in my Unity project which allows me to use the various methods to retrieve accounts and tokens.

However, when I try to retrieve an Id token with AcquireTokenInteractive, instead of the UI to input my Microsoft account credentials, I’m met with a popup which prompts me to install an app from the Windows Store to continue. I have found zero information about this on the various documentation about Azure AD B2C authentication with HoloLens, so I’m currently stuck. Would you happen to have any ideas ?

5810380--614881--image_censored.jpg


The popup is in french but it says
“Do you want to search an application in the Store ?
You must install an application for this task.
Do you want to search for one in the store ?”

Again, thanks for your time and have a nice day !

Hey Martin,

Have you had any luck with this? Did you manage to get it working without having to write native code?