Azure AD Authentication in Unity using MSAL

Hi First Time Poster, so please be a little patient for my folly.

I'm building Azure AD authentication into my Android Application, using MSAL 3.x, however it is throwing errors when attempting to Acquire Token with User Interaction. The documentation for MSAL 3.x suggests that the parent activity or window is needed, however using Unity I'm pretty lost with this. Any help here would be much appreciated.

I have tried a variety of input suggestions from the main documentation, but none of them seems to fit for Unity. The documentation can be found at: https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/Acquiring-tokens-interactively

I'm now pretty sure that I need to use UnityPlayerActivity to get the android activity for the parameter below, but I'm extremely lost in this area. Any help would be hugely appreciated.

authResult = await app.AcquireTokenInteractive(scopes).WithParentActivityOrWindow("need something here").ExecuteAsync();

You ever figure this out? I would absolutely love a solution! Been working on this for weeks and simply can't get the window to pop up!

up

This should be revisited

Hi, any leads to the above problem? I am stuck while using MSAL, not able to open browser for authentication

[quote=“ElCodeMonkey”, post:2, topic: 743426]
You ever figure this out? I would absolutely love a solution! Been working on this for weeks and simply can’t get the window to pop up!
[/quote]
Hi, Any leads to the above problem? I am not able to open browser for authentication using MSAL