MSAL with Unity3d UWP error

JC Lee 1 Reputation point
2022-01-03T18:51:01.09+00:00

I'm trying to the Microsoft auth with unity3d uwp.

Start from Azure quick start page sample, it worked good as itself.

But in unity3d build, AcquireTokenInteractive is not works.

How do I get it to work?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,367 questions
{count} votes

2 answers

Sort by: Most helpful
  1. James Hamil 24,311 Reputation points Microsoft Employee
    2022-01-12T00:12:08.2+00:00

    Hi @JC Lee , I was unable to reproduce the issue on my end. From the information you provided this seems to be an issue on Unity's side. Please post on the Unity forum and hopefully they can find the solution for you.

    Best,
    James

    0 comments No comments

  2. JC Lee 1 Reputation point
    2022-02-23T23:55:03.567+00:00

    Unity guys saids that I have to call it from UI thread, so I did call AcquireTokenInteractive in Unity UI thread.

    Buy I got a Web Connection error message like this

    177239-msal-run.png

    What is the problem?

    I used these parameters.
    ClientId = 8da850d5-4ba3-4382-b70b-f6babc38c488
    authority = https://login.microsoftonline.com/common/
    redirectUrl = https://login.microsoftonline.com/common/oauth2/nativeclient

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.