MSAL is not directly supported in Unity so, we have to import the nuget packages with the help of Nuget package Manager.
- Open the repo in Unity version 2020.2.6f1.
- Open the sample scene.
- Open the
GetAuthentication.cs
and add the Tenant ID and client ID.
- Open the
- Play in unity
- Enter username and password
- Click on the button and you will see the token in the screen.
To build for iOS, change the platform to iOS and click on build and run.
Note - Currently the target SDK is set to simulator SDK, if you want to change it navigate to player settings and select Device SDK.