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, 2022 in Azure by Edureka
• 12,690 points
921 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, 2022 by Edureka
• 13,620 points

Related Questions In Azure

0 votes
1 answer

How to create a service connection for Azure in Azure Devops (with pictures)

to create a service connection for Azure ...READ MORE

answered Mar 29, 2022 in Azure by Edureka
• 12,690 points

edited Jul 4, 2023 by Khan Sarfaraz 8,911 views
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, 2022 in Azure by Edureka
• 13,620 points
558 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, 2022 in Azure by Edureka
• 12,690 points
781 views
0 votes
1 answer
0 votes
1 answer

Can I create virtual machine without virtual network in Azure Resource Manager?

A VNet is used to provide the ...READ MORE

answered Mar 4, 2022 in Azure by Edureka
• 13,620 points
2,186 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP