Microsoft.IdentityModel.JsonWebTokens
                              
                            
                                8.14.0
                            
                        
                            
                                
                                
                                    Prefix Reserved
                                
                            
                    dotnet add package Microsoft.IdentityModel.JsonWebTokens --version 8.14.0
NuGet\Install-Package Microsoft.IdentityModel.JsonWebTokens -Version 8.14.0
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.14.0" />
<PackageVersion Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.14.0" />
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" />
paket add Microsoft.IdentityModel.JsonWebTokens --version 8.14.0
#r "nuget: Microsoft.IdentityModel.JsonWebTokens, 8.14.0"
#:package Microsoft.IdentityModel.JsonWebTokens@8.14.0
#addin nuget:?package=Microsoft.IdentityModel.JsonWebTokens&version=8.14.0
#tool nuget:?package=Microsoft.IdentityModel.JsonWebTokens&version=8.14.0
IdentityModel Extensions for .NET
The IdentityModel Extensions for .NET library provides robust tools to enhance authentication and authorization workflows in your .NET applications. Backed by the Entra team, this library simplifies working with OpenID Connect (OIDC), OAuth2.0, and JSON Web Tokens (JWT) in .NET.
Whether you're building secure APIs, implementing token validation, or managing claims, this library is designed to handle the heavy lifting for you.
Why IdentityModel?
- Widely Adopted: Trusted by thousands of developers to integrate OIDC and OAuth2.0 standards.
- Secure by Design: Built with security as a priority to reduce common vulnerabilities.
- Extensible: Easily extend or customize for advanced use cases.
- Battle hardened: Validates 5+ trillion requests daily, and growing.
Versions
You can find the release notes for each version here. Older versions can be found here.
Version Lifecycle and Support Matrix
See Long Term Support policy for details.
IdentityModel 8.x
Version 8.x introduces significant updates and improvements:
- Enhanced Performance: Optimized token validation to handle high-throughput scenarios.
- .NET Compatibility: Fully compatible with .NET 9.
🧭LTS: Supported through .NET 9 LTS lifetime: May 12, 2026 + .NET 10 LTS (~3 years).
IdentityModel 7.x
IdentityModel 7x introduced several improvements related to serialization and consistency in the API, which provide a better user experience for developers, as well as full AOT compatibility on .NET, and considerable performance improvements compared to IdentityModel 6x.
🧭LTS: Supported through .NET 8 LTS lifetime: Nov 10, 2026.
⚡Recommendation: Move to 8.x.
IdentityModel 6.x
🧭Deprecated: Support ended with .NET 7 LTS lifetime: May 2024.
⚡Action: Move to 8.x.
IdentityModel 5.x
Not a recommended version
🧭LTS: Supported for Microsoft.Owin.Security.JWT
⚡Action: Move to 8.x.
Samples and Documentation
The scenarios supported by IdentityModel extensions for .NET are described in Scenarios. The libraries are in particular used part of ASP.NET security to validate tokens in ASP.NET Web Apps and Web APIs. To learn more about token validation, and find samples, see:
- Microsoft Entra ID with ASP.NET Core
- Developing ASP.NET Apps with Microsoft Entra ID
- Validating tokens
- more generally, the library's Wiki
- the reference documentation
Community Help and Support
Report a bug or request a feature directly in the GitHub repo.
Have a design proposal? Please submit a design proposal before starting work on a PR to ensure it means the goals/objectives of this library and it's priorities.
We leverage Stack Overflow to work with the community on supporting Microsoft Entra and its SDKs, including this one! We highly recommend you ask your questions on Stack Overflow (we're all on there!) Also browse existing issues to see if someone has had your question before.
We recommend you use the "identityModel" tag so we can see it! Here is the latest Q&A on Stack Overflow for IdentityModel: https://stackoverflow.com/questions/tagged/identityModel
Security Reporting
See SECURITY.md
Contributing
All code is licensed under the MIT license and we triage actively on GitHub. We enthusiastically welcome contributions and feedback. See Contributing.md for guidelines, branch information, build instructions, and legalese.
License
Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License (the "License");
We Value and Adhere to the Microsoft Open Source Code of Conduct
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.
| Product | Versions Compatible and additional computed target framework versions. | 
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. 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-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. 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. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.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. | 
- 
                                                    .NETFramework 4.6.2- Microsoft.Bcl.TimeProvider (>= 8.0.1)
- Microsoft.IdentityModel.Tokens (>= 8.14.0)
 
- 
                                                    .NETFramework 4.7.2- Microsoft.Bcl.TimeProvider (>= 8.0.1)
- Microsoft.IdentityModel.Tokens (>= 8.14.0)
 
- 
                                                    .NETStandard 2.0- Microsoft.Bcl.TimeProvider (>= 8.0.1)
- Microsoft.IdentityModel.Tokens (>= 8.14.0)
 
- 
                                                    net6.0- Microsoft.Bcl.TimeProvider (>= 8.0.1)
- Microsoft.IdentityModel.Tokens (>= 8.14.0)
 
- 
                                                    net8.0- Microsoft.IdentityModel.Tokens (>= 8.14.0)
 
- 
                                                    net9.0- Microsoft.IdentityModel.Tokens (>= 8.14.0)
 
NuGet packages (452)
Showing the top 5 NuGet packages that depend on Microsoft.IdentityModel.JsonWebTokens:
| Package | Downloads | 
|---|---|
| System.IdentityModel.Tokens.Jwt Includes types that provide support for creating, serializing and validating JSON Web Tokens. As of IdentityModel 7x, this is a legacy tool that should be replaced with Microsoft.IdentityModel.JsonWebTokens. | |
| Microsoft.Data.SqlClient The current data provider for SQL Server and Azure SQL databases. This has replaced System.Data.SqlClient. These classes provide access to SQL and encapsulate database-specific protocols, including tabular data stream (TDS). Commonly Used Types: Microsoft.Data.SqlClient.SqlConnection Microsoft.Data.SqlClient.SqlException Microsoft.Data.SqlClient.SqlParameter Microsoft.Data.SqlClient.SqlDataReader Microsoft.Data.SqlClient.SqlCommand Microsoft.Data.SqlClient.SqlTransaction Microsoft.Data.SqlClient.SqlParameterCollection Microsoft.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4. | |
| AutoMapper A convention-based object-object mapper. | |
| MediatR Simple, unambitious mediator implementation in .NET | |
| Microsoft.Identity.Web.Certificateless This package brings certificateless authentication. | 
GitHub repositories (111)
Showing the top 20 popular GitHub repositories that depend on Microsoft.IdentityModel.JsonWebTokens:
| 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.
                                                         | |
| abpframework/abp 
                                                            Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
                                                         | |
| JustArchiNET/ArchiSteamFarm 
                                                            C# application with primary purpose of farming Steam cards from multiple accounts simultaneously.
                                                         | |
| aspnetboilerplate/aspnetboilerplate 
                                                            ASP.NET Boilerplate - Web Application Framework
                                                         | |
| LuckyPennySoftware/MediatR 
                                                            Simple, unambitious mediator implementation in .NET
                                                         | |
| chocolatey/choco 
                                                            Chocolatey - the package manager for Windows
                                                         | |
| LuckyPennySoftware/AutoMapper 
                                                            A convention-based object-object mapper in .NET. 
                                                         | |
| 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!!
                                                         | |
| kurrent-io/KurrentDB 
                                                            KurrentDB is a database that's engineered for modern software applications and event-driven architectures. Its event-native design simplifies data modeling and preserves data integrity while the integrated streaming engine solves distributed messaging challenges and ensures data consistency.
                                                         | |
| umbraco/Umbraco-CMS 
                                                            Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
                                                         | |
| openiddict/openiddict-core 
                                                            Flexible and versatile OAuth 2.0/OpenID Connect stack for .NET
                                                         | |
| Azure/azure-powershell 
                                                            Microsoft Azure PowerShell
                                                         | |
| microsoft/perfview 
                                                            PerfView is a CPU and memory performance-analysis tool
                                                         | |
| cake-build/cake 
                                                            :cake: Cake (C# Make) is a cross platform build automation system.
                                                         | |
| netwrix/pingcastle 
                                                            PingCastle - Get Active Directory Security at 80% in 20% of the time
                                                         | |
| OrchardCMS/Orchard 
                                                            Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
                                                         | |
| pnp/PnP 
                                                            SharePoint / Office 365 Developer Patterns and Practices - Archived older solutions. Please see https://aka.ms/m365pnp for updated guidance
                                                         | |
| microsoft/PowerApps-Samples 
                                                            Sample code for Power Apps, including Dataverse, model-driven apps, canvas apps, Power Apps component framework, portals, and AI Builder.
                                                         | |
| scottksmith95/LINQKit 
                                                            LINQKit is a free set of extensions for LINQ to SQL and Entity Framework power users.
                                                         | 
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 8.14.0 | 8,427,234 | 8/15/2025 | |
| 8.13.1 | 1,132,440 | 8/8/2025 | |
| 8.13.0 | 2,297,947 | 7/21/2025 | |
| 8.12.1 | 6,996,262 | 6/17/2025 | |
| 8.12.0 | 4,064,873 | 6/3/2025 | |
| 8.11.0 | 2,800,738 | 5/23/2025 | |
| 8.10.0 | 2,074,340 | 5/15/2025 | |
| 8.9.0 | 6,417,054 | 4/24/2025 | |
| 8.8.0 | 8,067,908 | 4/8/2025 | |
| 8.7.0 | 4,997,913 | 3/21/2025 | |
| 8.6.1 | 10,256,200 | 3/7/2025 | |
| 8.6.0 | 4,271,548 | 2/22/2025 | |
| 8.5.0 | 3,602,404 | 2/15/2025 | |
| 8.4.0 | 3,533,815 | 2/7/2025 | |
| 8.3.1 | 14,606,163 | 1/17/2025 | |
| 8.3.0 | 17,555,500 | 12/4/2024 | |
| 8.2.1 | 10,846,193 | 11/15/2024 | |
| 8.2.0 | 13,648,726 | 11/2/2024 | |
| 8.1.2 | 14,150,950 | 10/8/2024 | |
| 8.1.1 | 1,400,382 | 10/5/2024 | |
| 8.0.1 | 38,175,945 | 7/23/2024 | |
| 8.0.0 | 3,472,666 | 7/16/2024 | |
| 8.0.0-preview1 | 203,987 | 6/19/2024 | |
| 7.7.1 | 11,538,732 | 7/20/2024 | |
| 7.7.0 | 173,568 | 7/18/2024 | |
| 7.6.3 | 5,935,194 | 7/10/2024 | |
| 7.6.2 | 7,474,225 | 6/20/2024 | |
| 7.6.1 | 1,422,429 | 6/17/2024 | |
| 7.6.0 | 20,021,986 | 5/28/2024 | |
| 7.5.2 | 6,850,392 | 5/13/2024 | |
| 7.5.1 | 19,957,731 | 4/5/2024 | |
| 7.5.0 | 36,613,650 | 3/27/2024 | |
| 7.4.1 | 6,798,269 | 3/15/2024 | |
| 7.4.0 | 10,074,031 | 2/26/2024 | |
| 7.4.0-preview1 | 20,243 | 2/12/2024 | |
| 7.3.1 | 17,756,076 | 2/3/2024 | |
| 7.3.0 | 2,372,029 | 1/30/2024 | |
| 7.2.0 | 16,841,849 | 1/10/2024 | |
| 7.1.2 | 133,820,319 | 1/9/2024 | |
| 7.0.3 | 30,403,098 | 10/17/2023 | |
| 7.0.2 | 1,773,053 | 9/29/2023 | |
| 7.0.1 | 257,330 | 9/27/2023 | |
| 7.0.0 | 10,441,430 | 9/11/2023 | |
| 7.0.0-preview5 | 461,285 | 9/6/2023 | |
| 7.0.0-preview4 | 8,408 | 8/29/2023 | |
| 7.0.0-preview3 | 21,488 | 8/21/2023 | |
| 7.0.0-preview2 | 9,665 | 8/13/2023 | |
| 7.0.0-preview | 198,525 | 7/11/2023 | |
| 6.36.0 | 6,350,125 | 7/19/2024 | |
| 6.35.1 | 560,150 | 7/11/2024 | |
| 6.35.0 | 236,761,659 | 1/9/2024 | |
| 6.34.0 | 46,066,215 | 10/17/2023 | |
| 6.33.0 | 10,693,654 | 10/3/2023 | |
| 6.32.3 | 3,790,114 | 9/5/2023 | |
| 6.32.2 | 3,301,492 | 8/26/2023 | |
| 6.32.1 | 5,638,977 | 7/28/2023 | |
| 6.32.0 | 8,878,658 | 7/12/2023 | |
| 6.31.0 | 7,632,288 | 6/8/2023 | |
| 6.30.1 | 7,077,450 | 5/10/2023 | |
| 6.30.0 | 8,417,066 | 4/26/2023 | |
| 6.29.0 | 5,018,118 | 4/14/2023 | |
| 6.28.1 | 3,545,327 | 4/3/2023 | |
| 6.27.0 | 14,509,882 | 2/16/2023 | |
| 6.26.1 | 9,205,502 | 2/7/2023 | |
| 6.26.0 | 4,508,410 | 1/20/2023 | |
| 6.25.1 | 30,485,986 | 12/1/2022 | |
| 6.25.0 | 12,559,506 | 10/27/2022 | |
| 6.24.0 | 111,604,796 | 10/13/2022 | |
| 6.23.1 | 22,483,068 | 9/8/2022 | |
| 6.23.0 | 819,687 | 9/6/2022 | |
| 6.22.1 | 3,633,134 | 8/25/2022 | |
| 6.22.0 | 17,491,382 | 7/27/2022 | |
| 6.21.0 | 80,298,630 | 7/1/2022 | |
| 6.20.0 | 8,460,355 | 6/21/2022 | |
| 6.19.0 | 22,940,252 | 6/6/2022 | |
| 6.18.0 | 6,511,313 | 5/19/2022 | |
| 6.17.0 | 19,783,350 | 4/6/2022 | |
| 6.16.0 | 24,067,730 | 2/18/2022 | |
| 6.15.1 | 67,426,217 | 1/20/2022 | |
| 6.15.0 | 18,006,804 | 12/3/2021 | |
| 6.14.1 | 10,108,849 | 11/4/2021 | |
| 6.14.0 | 1,114,000 | 10/29/2021 | |
| 6.13.1 | 13,561,147 | 10/7/2021 | |
| 6.12.2 | 30,948,308 | 8/20/2021 | |
| 6.12.1 | 4,490,388 | 8/13/2021 | |
| 6.12.0 | 11,088,836 | 7/21/2021 | |
| 6.11.1 | 31,522,744 | 5/21/2021 | |
| 6.11.0 | 4,483,185 | 4/27/2021 | |
| 6.10.2 | 12,672,356 | 4/15/2021 | |
| 6.10.1 | 1,281,337 | 4/12/2021 | |
| 6.10.0 | 163,035,126 | 3/30/2021 | |
| 6.9.0 | 2,761,216 | 3/16/2021 | |
| 6.8.0 | 273,304,652 | 10/13/2020 | |
| 6.7.2-preview-10803222715 | 71,604 | 8/4/2020 | |
| 6.7.1 | 98,933,053 | 6/30/2020 | |
| 6.6.0 | 9,058,928 | 5/22/2020 | |
| 6.5.1 | 5,628,534 | 4/28/2020 | |
| 6.5.0 | 15,276,543 | 3/24/2020 | |
| 5.7.0 | 4,878,683 | 1/9/2024 | |
| 5.6.0 | 167,885,124 | 10/19/2019 | |
| 5.5.0 | 237,406,439 | 6/24/2019 | |
| 5.4.0 | 125,091,191 | 1/23/2019 | |
| 5.3.0 | 84,727,053 | 10/5/2018 | |
| 5.2.4 | 29,793,674 | 6/19/2018 |