Microsoft.IdentityModel.Tokens 8.20.0

IdentityModel Extensions for .NET

Nuget

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.

Major Version Currently Supported Version Status
8.x from 8.0.1 to Nuget Active (Current) - Tied to .NET 9 (STS) & 10 (LTS) ~ Nov, 2028
7.x 7.7.1 Supported (LTS) through .NET 8 LTS lifetime Nov 10, 2026.
⚠️Versions < 7.7.1 not supported.
5.x 5.7.0 Supported (LTS), tied to the Microsoft.Owin.Security.JWT 4.2.2 lifetime.
⚠️Versions < 5.7.0 not supported.

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:

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.

Showing the top 20 packages that depend on Microsoft.IdentityModel.Tokens.

Packages Downloads
Microsoft.IdentityModel.JsonWebTokens
Includes types that provide support for creating, serializing and validating JSON Web Tokens.
178
Microsoft.IdentityModel.JsonWebTokens
Includes types that provide support for creating, serializing and validating JSON Web Tokens.
203
Microsoft.IdentityModel.JsonWebTokens
Includes types that provide support for creating, serializing and validating JSON Web Tokens.
218
Microsoft.IdentityModel.JsonWebTokens
Includes types that provide support for creating, serializing and validating JSON Web Tokens. This is a newer, faster version of System.IdentityModel.Tokens.Jwt that has additional functionality.
208
Microsoft.IdentityModel.JsonWebTokens
Includes types that provide support for creating, serializing and validating JSON Web Tokens. This is a newer, faster version of System.IdentityModel.Tokens.Jwt that has additional functionality.
275
Microsoft.IdentityModel.JsonWebTokens
Includes types that provide support for creating, serializing and validating JSON Web Tokens. This is a newer, faster version of System.IdentityModel.Tokens.Jwt that has additional functionality.
498
Microsoft.IdentityModel.Protocols
Provides base protocol support for OpenIdConnect and WsFederation.
180
Microsoft.IdentityModel.Protocols
Provides base protocol support for OpenIdConnect and WsFederation.
197
Microsoft.IdentityModel.Protocols
Provides base protocol support for OpenIdConnect and WsFederation.
220
Microsoft.IdentityModel.Protocols
Provides base protocol support for OpenIdConnect and WsFederation.
233
Microsoft.IdentityModel.Protocols
Provides base protocol support for OpenIdConnect and WsFederation.
495
Microsoft.IdentityModel.Tokens.Saml
Includes types that provide support for SamlTokens version 1 and 2.
183
Microsoft.IdentityModel.Tokens.Saml
Includes types that provide support for SamlTokens version 1 and 2.
480
Microsoft.IdentityModel.Xml
Includes types that provide support for Reading / Writing XML with Enveloped Signatures.
180
Microsoft.IdentityModel.Xml
Includes types that provide support for Reading / Writing XML with Enveloped Signatures.
218
System.IdentityModel.Tokens.Jwt
Includes types that provide support for creating, serializing and validating JSON Web Tokens.
178
System.IdentityModel.Tokens.Jwt
Includes types that provide support for creating, serializing and validating JSON Web Tokens.
193
System.IdentityModel.Tokens.Jwt
Includes types that provide support for creating, serializing and validating JSON Web Tokens.
227
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.
190
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.
252

.NET 10.0

.NET 6.0

.NET 8.0

.NET 9.0

.NET Standard 2.0

.NET Framework 4.7.2

.NET Framework 4.6.2

Version Downloads Last updated
8.21.0 0 07/22/2026
8.20.0 1 07/22/2026
8.19.2 7 07/15/2026
8.19.1 23 06/05/2026
8.19.0 15 06/03/2026
8.18.0 36 05/01/2026
8.17.0 46 03/24/2026
8.16.0 52 02/13/2026
8.15.0 146 11/19/2025
8.14.0 107 08/16/2025
8.13.1 120 08/11/2025
8.13.0 137 07/22/2025
8.12.1 127 06/19/2025
8.12.0 122 06/04/2025
8.11.0 102 05/26/2025
8.10.0 146 05/19/2025
8.9.0 157 04/25/2025
8.8.0 119 04/09/2025
8.7.0 123 03/31/2025
8.6.1 160 03/31/2025
8.6.0 163 03/31/2025
8.5.0 500 02/16/2025
8.4.0 142 02/16/2025
8.3.1 126 03/31/2025
8.3.0 113 12/13/2024
8.2.1 125 11/20/2024
8.2.0 127 11/06/2024
8.1.2 132 10/18/2024
8.1.1 128 10/21/2024
8.1.0 124 11/26/2024
8.0.2 133 11/10/2024
8.0.1 183 08/04/2024
8.0.0 156 07/22/2024
8.0.0-preview1 144 07/22/2024
7.7.3 3 07/15/2026
7.7.2 15 06/05/2026
7.7.1 138 07/22/2024
7.7.0 185 07/22/2024
7.6.3 164 07/22/2024
7.6.2 155 07/22/2024
7.6.1 171 07/22/2024
7.6.0 141 07/22/2024
7.5.2 148 07/22/2024
7.5.1 154 07/22/2024
7.5.0 168 07/22/2024
7.4.1 145 07/22/2024
7.4.0 161 07/22/2024
7.4.0-preview1 138 07/22/2024
7.3.1 158 07/22/2024
7.3.0 157 07/22/2024
7.2.0 146 07/22/2024
7.1.2 207 02/04/2024
7.0.3 156 02/13/2024
7.0.2 147 07/22/2024
7.0.1 150 07/22/2024
7.0.0 150 07/22/2024
7.0.0-preview5 145 07/22/2024
7.0.0-preview4 135 07/22/2024
7.0.0-preview3 146 07/22/2024
7.0.0-preview2 137 07/22/2024
7.0.0-preview 159 07/22/2024
6.36.0 179 07/22/2024
6.35.1 159 07/22/2024
6.35.0 292 06/24/2024
6.34.0 171 07/22/2024
6.33.0 171 07/22/2024
6.32.3 154 07/22/2024
6.32.2 155 07/22/2024
6.32.1 161 07/22/2024
6.32.0 165 07/22/2024
6.31.0 180 07/22/2024
6.30.1 159 07/22/2024
6.30.0 172 07/22/2024
6.29.0 156 07/22/2024
6.28.1 131 07/22/2024
6.27.0 164 07/22/2024
6.26.1 162 07/22/2024
6.26.0 169 07/22/2024
6.25.1 172 07/22/2024
6.25.0 145 07/22/2024
6.24.0 192 07/14/2024
6.23.1 136 07/22/2024
6.23.0 155 07/22/2024
6.22.1 134 07/22/2024
6.22.0 154 07/22/2024
6.21.0 185 02/19/2024
6.20.0 172 07/22/2024
6.19.0 150 07/22/2024
6.18.0 185 07/22/2024
6.17.0 139 07/22/2024
6.16.0 172 07/22/2024
6.15.1 189 02/04/2024
6.15.0 158 07/22/2024
6.14.1 170 07/22/2024
6.14.0 153 07/22/2024
6.13.1 159 07/22/2024
6.12.2 172 07/22/2024
6.12.1 149 07/22/2024
6.12.0 148 07/22/2024
6.11.1 131 07/22/2024
6.11.0 170 07/22/2024
6.10.2 171 07/22/2024
6.10.1 167 07/22/2024
6.10.0 211 02/04/2024
6.9.0 189 07/22/2024
6.8.0 207 02/04/2024
6.7.2-preview-10803222715 164 07/22/2024
6.7.1 156 07/22/2024
6.6.1-preview-10617201806 162 07/22/2024
6.6.0 164 07/22/2024
6.5.1 144 07/22/2024
6.5.0 149 07/22/2024
5.7.1 5 07/15/2026
5.7.0 152 07/22/2024
5.6.0 146 07/22/2024
5.5.0 173 07/22/2024
5.4.0 131 07/22/2024
5.3.0 164 07/22/2024
5.2.4 143 07/22/2024
5.2.2 148 07/22/2024
5.2.1 147 07/22/2024
5.1.5 137 07/22/2024
5.1.4 144 07/22/2024
5.1.3 145 07/22/2024
5.1.2 162 07/22/2024
5.0.0 154 07/22/2024