Error with Azure AD Authentication in Unity for Android

0 votes
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.
Mar 7 in Azure by Edureka
• 5,660 points
75 views

1 answer to this question.

0 votes
Depending on the version, Unity uses UnityPlayerActivity or UnityPlayerNativeActivity.
The Activity is necessary in MSAL.NET for Android applications because it provides the context for creating the interactive token acquisition procedure.
You might want to use the main/launcher activity in other instances.
You might consider extending a Unity Activity and implementing a hook for your MSAL.NET code in Unity.
answered Mar 24 by Edureka
• 5,960 points

Related Questions In Azure

0 votes
1 answer
0 votes
0 answers

C# NuGet package error in Azure DevOps with image

I'm creating a NuGet package to distribute ...READ MORE

Apr 12 in Azure by Edureka
• 5,960 points
33 views
0 votes
1 answer
0 votes
1 answer

Azure Pricing Calculator for Hours in Cloud Service

The best method to understand Cloud Service ...READ MORE

answered Mar 29 in Azure by Edureka
• 5,660 points
32 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP