System.IdentityModel.Tokens.Jwt
8.22.0
Prefix Reserved
dotnet add package System.IdentityModel.Tokens.Jwt --version 8.22.0
NuGet\Install-Package System.IdentityModel.Tokens.Jwt -Version 8.22.0
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.22.0" />
<PackageVersion Include="System.IdentityModel.Tokens.Jwt" Version="8.22.0" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" />
paket add System.IdentityModel.Tokens.Jwt --version 8.22.0
#r "nuget: System.IdentityModel.Tokens.Jwt, 8.22.0"
#:package System.IdentityModel.Tokens.Jwt@8.22.0
#addin nuget:?package=System.IdentityModel.Tokens.Jwt&version=8.22.0
#tool nuget:?package=System.IdentityModel.Tokens.Jwt&version=8.22.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: