What is the correct MSAL package for a WPF core 3.1 desktop app?

Michael 76 Reputation points
2020-06-20T15:36:44.697+00:00

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?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,669 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,436 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael 76 Reputation points
    2020-06-21T19:43:50.417+00:00

    Seems that the microsoft.identity.client is in fact a multiplatform package and worked with my .NET Core 3.1.

    1 person found this answer helpful.
    0 comments No comments

  2. 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.

    1 person found this answer helpful.
    0 comments No comments