Microsoft.Identity.Client 4.70.2

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Microsoft.Identity.Client --version 4.70.2
                    
NuGet\Install-Package Microsoft.Identity.Client -Version 4.70.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.Identity.Client" Version="4.70.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Identity.Client" Version="4.70.2" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Identity.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.Identity.Client --version 4.70.2
                    
#r "nuget: Microsoft.Identity.Client, 4.70.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Microsoft.Identity.Client&version=4.70.2
                    
Install Microsoft.Identity.Client as a Cake Addin
#tool nuget:?package=Microsoft.Identity.Client&version=4.70.2
                    
Install Microsoft.Identity.Client as a Cake Tool

Microsoft Authentication Library (MSAL) for .NET

The MSAL library for .NET is part of the Microsoft identity platform for developers (formerly named Azure AD) v2.0. It enables you to acquire security tokens to call protected APIs. It uses industry standard OAuth2 and OpenID Connect. The library also supports Azure AD B2C.

Quick links:

Conceptual documentation Getting Started Sample Code API Reference Support Feedback

Performance perspectives

Our documentation describes the approach to performance testing.

View some of the historical performance benchmark results in our dashboard.

Support SLA

MSAL.NET became Generally Available with MSAL.NET 3.0.8. Since MSAL.NET moved to version 4:

  • Major versions are supported for twelve months after the release of the next major version.
  • Minor versions older than N-1 are not supported.

Note Minor versions include bug fixes or features with non-breaking (additive) API changes. It is expected that applications using the library can upgrade through the IDE or CLI with no friction. We will not patch old minor versions of the library. When opening new issues, please confirm that you are using the latest minor version.

Using MSAL.NET

Where do I file issues

You can file new issues in this repository.

Community help and support

We use Stack Overflow with the community to provide support. We highly recommend you ask your questions on Stack Overflow first and browse existing issues to see if someone has asked your question before.

If you find a bug or have a feature request, please raise the issue on GitHub Issues.

Contribute

We welcome contributions and feedback. You can fork and clone the repo and start contributing now. Read our Contribution Guide for more information.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Security library

This library controls how users sign-in and access services. We recommend you always take the latest version of our library in your app when possible. We use semantic versioning so you can control the risk associated with updating your app. As an example, always downloading the latest minor version number (e.g. x.y.z) ensures you get the latest security and feature enhancements but our API surface remains the same. You can always see the latest version and release notes under the Releases tab of GitHub.

Security reporting

If you find a security issue with our libraries or services please report it to secure@microsoft.com in as much detail as possible. Your submission may be eligible for a bounty through the Microsoft Bug Bounty program. Please do not post security issues to GitHub Issues or any other public site. We will contact you shortly after receiving the information. We encourage you to get notifications of when security incidents occur by visiting the Microsoft Technical Security Notifications page and subscribing to Security Advisory Alerts.

Data collection

The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft's privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.

See the our telemetry documentation for an example of the telemetry collected by MSAL.NET.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

Copyright © Microsoft Corporation. All rights reserved. Licensed under the MIT License (the "License").

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-android34.0 is compatible.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-ios18.0 is compatible.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (485)

Showing the top 5 NuGet packages that depend on Microsoft.Identity.Client:

Package Downloads
Azure.Identity

Provides APIs for authenticating to Microsoft Entra ID

Microsoft.Identity.Client.Extensions.Msal

This package contains the public client (desktop) caching to Microsoft Authentication Library for .NET (MSAL.NET)

Microsoft.Identity.Web.TokenCache

This package bring token cache serializers for MSAL.NET confidential client applications.

Microsoft.Identity.Web.Certificateless

This package brings certificateless authentication.

Microsoft.Graph.Auth

Microsoft Graph Authentication Library implements authentication functionality used by Microsoft Graph Client Library. It provides a set of OAuth scenario-centric providers that implement Microsoft.Graph.IAuthenticationProvider and uses Microsoft Authentication Library (MSAL) to handle access token acquisition and storage.

GitHub repositories (120)

Showing the top 20 popular GitHub repositories that depend on Microsoft.Identity.Client:

Repository Stars
microsoft/semantic-kernel
Integrate cutting-edge LLM technology quickly and easily into your apps
dotnet/roslyn
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
nopSolutions/nopCommerce
ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
unoplatform/uno
Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
git-ecosystem/git-credential-manager
Secure, cross-platform Git credential storage with authentication to GitHub, Azure Repos, and other popular Git hosting services.
elsa-workflows/elsa-core
A .NET workflows library
Azure/azure-sdk-for-net
This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
Azure/azure-powershell
Microsoft Azure PowerShell
microsoft/perfview
PerfView is a CPU and memory performance-analysis tool
xamarin/xamarin-forms-samples
Sample apps built using the Xamarin.Forms framework
dotnet/maui-samples
Samples for .NET Multi-Platform App UI (.NET MAUI)
microsoft/Power-Fx
Power Fx low-code programming language
lukencode/FluentEmail
All in one email sender for .NET. Supports popular senders (SendGrid, MailGun, etc) and Razor templates.
dotnet/interactive
.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
microsoft/onefuzz
A self-hosted Fuzzing-As-A-Service platform
HotCakeX/Harden-Windows-Security
Harden Windows Safely, Securely using Official Supported Microsoft methods and proper explanation | Always up-to-date and works with the latest build of Windows | Provides tools and Guides for Personal, Enterprise, Government and Military security levels | Read The Rationale https://github.com/HotCakeX/Harden-Windows-Security/blob/main/Rationale.md
pnp/PnP
SharePoint / Office 365 Developer Patterns and Practices - Archived older solutions. Please see https://aka.ms/m365pnp for updated guidance
microsoft/WhatTheHack
A collection of challenge based hack-a-thons including student guide, coach guide, lecture presentations, sample/instructional code and templates. Please visit the What The Hack website at: https://aka.ms/wth
microsoft/CDM
The Common Data Model (CDM) is a standard and extensible collection of schemas (entities, attributes, relationships) that represents business concepts and activities with well-defined semantics, to facilitate data interoperability. Examples of entities include: Account, Contact, Lead, Opportunity, Product, etc.
scottksmith95/LINQKit
LINQKit is a free set of extensions for LINQ to SQL and Entity Framework power users.
Version Downloads Last updated
4.71.2-preview 322 2 days ago
4.71.1-preview 2,204 2 days ago
4.71.0 45,564 6 days ago
4.70.2 224,276 15 days ago
4.70.1 534,564 20 days ago
4.70.1-preview 1,929 a month ago
4.70.0 685,193 a month ago
4.69.1 1,350,175 2 months ago
4.68.0 1,056,111 3 months ago
4.67.2 12,216,546 3 months ago
4.67.1 523,322 3 months ago
4.67.0 94,415 4 months ago
4.66.4-preview 353 3 months ago
4.66.3-preview 322 4 months ago
4.66.2 4,265,061 5 months ago
4.66.2-preview 405 4 months ago
4.66.1 25,168,906 6 months ago
4.66.0 296,967 6 months ago
4.65.3-preview 6,442 7 months ago
4.65.0 11,991,627 7 months ago
4.64.2-preview 5,417 7 months ago
4.64.1 1,721,191 7 months ago
4.64.0 1,851,994 8 months ago
4.63.0 1,724,483 9 months ago
4.62.0 1,733,039 9 months ago
4.62.0-preview 3,083 9 months ago
4.61.3 105,375,798 6/6/2024
4.61.2 203,199 6/3/2024 4.61.2 has at least one vulnerability with moderate severity.
4.61.1 667,350 5/22/2024 4.61.1 has at least one vulnerability with moderate severity.
4.61.0 888,289 5/9/2024 4.61.0 has at least one vulnerability with moderate severity.
4.60.4 798,482 6/19/2024
4.60.3 32,524,273 4/16/2024 4.60.3 has at least one vulnerability with moderate severity.
4.60.2 251,230 4/9/2024 4.60.2 has at least one vulnerability with moderate severity.
4.60.1 11,605,653 4/2/2024 4.60.1 has at least one vulnerability with moderate severity.
4.60.0 164,676 3/27/2024 4.60.0 has at least one vulnerability with moderate severity.
4.59.1 1,012,721 4/16/2024 4.59.1 has at least one vulnerability with moderate severity.
4.59.0 10,532,412 1/17/2024 4.59.0 has at least one vulnerability with moderate severity.
4.58.1 1,577,400 12/8/2023 4.58.1 has at least one vulnerability with moderate severity.
4.58.0 666,179 11/29/2023 4.58.0 has at least one vulnerability with moderate severity.
4.57.0 11,694,413 10/18/2023 4.57.0 has at least one vulnerability with moderate severity.
4.56.0 149,593,227 9/6/2023 4.56.0 has at least one vulnerability with moderate severity.
4.55.0 5,152,494 7/24/2023 4.55.0 has at least one vulnerability with moderate severity.
4.54.1 27,649,200 5/24/2023 4.54.1 has at least one vulnerability with moderate severity.
4.54.0 1,875,823 5/11/2023 4.54.0 has at least one vulnerability with moderate severity.
4.53.0 4,907,133 4/14/2023 4.53.0 has at least one vulnerability with moderate severity.
4.52.0 1,716,187 3/31/2023 4.52.0 has at least one vulnerability with moderate severity.
4.51.0 2,636,048 3/16/2023 4.51.0 has at least one vulnerability with moderate severity.
4.50.0 4,440,065 2/13/2023 4.50.0 has at least one vulnerability with moderate severity.
4.49.1 41,017,743 12/20/2022 4.49.1 has at least one vulnerability with moderate severity.
4.48.1 7,657,567 11/15/2022 4.48.1 has at least one vulnerability with low severity.
4.48.0 2,367,903 11/2/2022 4.48.0 has at least one vulnerability with low severity.
4.47.2 76,952,076 10/4/2022
4.47.1 1,710,461 9/21/2022
4.47.0 2,078,096 9/16/2022
4.46.2 1,190,155 8/29/2022
4.46.1 4,347,595 8/17/2022
4.46.0 26,685,538 8/4/2022
4.46.0-preview2 37,701 7/8/2022
4.45.0 70,068,123 6/23/2022
4.44.0 7,195,497 5/20/2022
4.43.2 1,246,387 5/2/2022
4.43.1 1,291,104 4/15/2022
4.43.0 2,141,747 4/6/2022
4.42.1 1,559,651 3/15/2022
4.42.0 17,475,960 2/28/2022
4.41.0 7,438,298 2/8/2022
4.40.0 4,004,638 1/8/2022
4.39.0 74,349,182 11/30/2021
4.38.0 3,885,569 11/19/2021
4.37.0 7,736,245 10/22/2021
4.37.0-preview 65,390 10/6/2021
4.36.2 6,598,740 9/29/2021
4.36.1 2,727,061 9/8/2021
4.36.0 1,301,267 8/31/2021
4.35.1 15,123,032 7/30/2021
4.35.0 2,054,256 7/23/2021
4.34.0 1,451,127 7/8/2021
4.33.0 4,071,478 6/22/2021
4.32.1 2,162,968 6/10/2021
4.32.0 683,034 6/3/2021
4.31.0 2,260,036 5/11/2021
4.30.1 82,289,614 4/28/2021
4.30.0 2,208,610 4/22/2021
4.29.0 4,194,225 3/30/2021
4.28.1 1,046,269 3/23/2021
4.28.0 218,796 3/18/2021
4.27.1 9,717 4/16/2021
4.27.0 1,647,174 2/19/2021
4.26.0 1,939,693 2/10/2021
4.25.0 2,878,502 1/20/2021
4.24.0 2,614,951 12/5/2020
4.23.0 2,571,410 11/24/2020
4.22.0 143,374,737 10/27/2020
4.21.1 157,727,884 10/20/2020
4.21.0 825,009 10/15/2020
4.20.1 812,540 10/14/2020
4.20.0 40,345 10/13/2020
4.20.0-wampreview1 11,609 9/30/2020
4.19.0 2,705,990 9/25/2020
4.18.0 1,630,673 9/2/2020
4.17.2 9,131 1/21/2021
4.17.1 5,855,045 8/5/2020
4.17.0 390,139 7/27/2020
4.16.1 8,288,610 7/10/2020
4.16.0 139,090 7/7/2020
4.15.0 1,473,642 6/18/2020
4.14.0 83,169,077 5/19/2020
4.13.0 820,904 5/5/2020
4.12.0 904,045 4/23/2020
4.11.0 1,007,893 4/3/2020
4.10.0 1,040,682 3/18/2020
4.9.0 4,372,199 3/6/2020
4.8.2 6,982,586 2/15/2020
4.8.1 540,220 1/29/2020
4.8.1-preview1 16,397 1/28/2020
4.7.1 1,671,948 11/22/2019
4.7.0 258,708 11/7/2019
4.6.0 5,437,073 11/4/2019
4.5.1 729,204 10/17/2019
4.5.0 61,156 10/16/2019
4.4.0 517,991 9/20/2019
4.3.1 768,461 8/27/2019
4.3.0 366,332 8/8/2019
4.2.1 198,145 7/24/2019
4.2.0 41,235 7/23/2019
4.1.0 16,348,883 7/2/2019
4.0.0 1,411,253 6/3/2019
3.0.9 61,569 7/31/2019
3.0.8 123,192,780 4/30/2019
3.0.6-preview 123,733 4/19/2019
3.0.5-preview 12,931 4/16/2019
3.0.4-preview 41,914 4/11/2019
3.0.3-preview 75,595 4/8/2019
3.0.2-preview 16,494 3/25/2019
3.0.1-preview 9,082 3/21/2019
3.0.0-preview 34,313 2/27/2019
2.7.1 964,920 2/21/2019
2.7.0 401,305 1/16/2019
2.6.2 177,547 12/20/2018
2.6.1 158,172 12/18/2018
2.6.0-preview 29,359 12/12/2018
2.5.0-preview 191,640 11/21/2018
2.4.1-preview 14,957 11/16/2018
2.4.0-preview 777,268 11/9/2018
2.3.1-preview 46,095 10/26/2018
2.3.0-preview 30,321 10/19/2018
2.2.1-preview 18,062 10/17/2018
2.2.0-preview 39,917 10/5/2018
2.1.0-preview 53,981 9/27/2018
2.0.1-preview 67,161 9/15/2018
2.0.0-preview 73,435 8/28/2018
1.1.4-preview0002 304,751 6/1/2018
1.1.3-preview0012 16,471 5/25/2018
1.1.2-preview0008 569,168 2/2/2018
1.1.1-preview0040 78,188 1/6/2018
1.1.0-preview 591,836 5/9/2017
1.0.304142221-alpha 466,039 4/15/2016
1.0.304142201-alpha 13,407 4/15/2016
1.0.303282006-alpha 14,257 3/29/2016