Seems that the microsoft.identity.client is in fact a multiplatform package and worked with my .NET Core 3.1.
What is the correct MSAL package for a WPF core 3.1 desktop app?
I have a WPF desktop app built on the .NET Core 3.1 framework. I would like to add the ability to acquire a token and call Microsoft Graph API from this desktop app.
Microsoft.Identity.Client does not list .NET Core 3.1 as a dependency. Is this the correct package to use? Is there another flavor of the MSAL library that is build for use with .NET Core 3.1 desktop WPF apps?
2 answers
Sort by: Most helpful
-
-
DaisyTian-1203 11,616 Reputation points
2020-06-22T06:08:48.9+00:00 Yes, you are right. The 4.15.0 version of Microsoft.Identity.Client supports adding authentication functionality to .NET based client on Windows desktop (.NET 4.5+), UWP, .NET Core, Xamarin iOS and Xamarin Android. You can install it in the NuGet for your .Net Core project, and there are samples in Microsoft identity platform code samples to know the details and steps of calling Graph API it in different platforms.