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: Acquiring tokens interactively · AzureAD/microsoft-authentication-library-for-dotnet Wiki · GitHub
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();