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

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

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?

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,544 questions
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,169 questions
No comments
{count} votes

2 answers

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

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

    No comments

  2. answered 2020-06-22T06:08:48.9+00:00
    DaisyTian-1203 11,506 Reputation points

    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.

    No comments