Microsoft.IdentityModel.Protocols
8.10.0
Prefix Reserved
dotnet add package Microsoft.IdentityModel.Protocols --version 8.10.0
NuGet\Install-Package Microsoft.IdentityModel.Protocols -Version 8.10.0
<PackageReference Include="Microsoft.IdentityModel.Protocols" Version="8.10.0" />
<PackageVersion Include="Microsoft.IdentityModel.Protocols" Version="8.10.0" />
<PackageReference Include="Microsoft.IdentityModel.Protocols" />
paket add Microsoft.IdentityModel.Protocols --version 8.10.0
#r "nuget: Microsoft.IdentityModel.Protocols, 8.10.0"
#addin nuget:?package=Microsoft.IdentityModel.Protocols&version=8.10.0
#tool nuget:?package=Microsoft.IdentityModel.Protocols&version=8.10.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.IdentityModel.Tokens (>= 8.10.0)
-
.NETFramework 4.7.2
- Microsoft.IdentityModel.Tokens (>= 8.10.0)
-
.NETStandard 2.0
- Microsoft.IdentityModel.Tokens (>= 8.10.0)
-
net6.0
- Microsoft.IdentityModel.Tokens (>= 8.10.0)
-
net8.0
- Microsoft.IdentityModel.Tokens (>= 8.10.0)
-
net9.0
- Microsoft.IdentityModel.Tokens (>= 8.10.0)
NuGet packages (98)
Showing the top 5 NuGet packages that depend on Microsoft.IdentityModel.Protocols:
Package | Downloads |
---|---|
Microsoft.IdentityModel.Protocols.OpenIdConnect
Includes types that provide support for OpenIdConnect protocol. |
|
Microsoft.IdentityModel.Validators
Includes types that provide token validators. |
|
Microsoft.IdentityModel.Protocols.WsFederation
Includes types that provide support for WsFederation protocol. |
|
Microsoft.Owin.Security.OpenIdConnect
Middleware that enables an application to use OpenIdConnect for authentication. |
|
OpenIddict.Validation
OpenIddict token validation services. Note: this package only contains the generic/host-agnostic validation components. To use the validation feature on ASP.NET Core or OWIN/Katana, reference the OpenIddict.Validation.AspNetCore or OpenIddict.Validation.Owin package. |
GitHub repositories (36)
Showing the top 20 popular GitHub repositories that depend on Microsoft.IdentityModel.Protocols:
Repository | Stars |
---|---|
chocolatey/choco
Chocolatey - the package manager for Windows
|
|
openiddict/openiddict-core
Flexible and versatile OAuth 2.0/OpenID Connect stack for .NET
|
|
OrchardCMS/Orchard
Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
|
|
Azure/azure-functions-host
The host/runtime that powers Azure Functions
|
|
scottksmith95/LINQKit
LINQKit is a free set of extensions for LINQ to SQL and Entity Framework power users.
|
|
OfficeDev/Microsoft-Teams-Samples
Welcome to the Microsoft Teams samples repository. Here you will find task-focused samples in C#, JavaScript and TypeScript to help you get started with the Microsoft Teams App!
|
|
Azure/data-api-builder
Data API builder provides modern REST and GraphQL endpoints to your Azure Databases and on-prem stores.
|
|
aspnet/AspNetKatana
Microsoft's OWIN implementation, the Katana project
|
|
optimajet/WorkflowEngine.NET
WorkflowEngine.NET - component that adds workflow in your application. It can be fully integrated into your application, or be in the form of a specific service (such as a web service).
|
|
Kyrodan/KeeAnywhere
A cloud storage provider plugin for KeePass Password Safe
|
|
SparkDevNetwork/Rock
An open source CMS, Relationship Management System (RMS) and Church Management System (ChMS) all rolled into one.
|
|
cmu-sei/GHOSTS
GHOSTS is a realistic user simulation framework for cyber experimentation, simulation, training, and exercise
|
|
ProfessionalCSharp/ProfessionalCSharp7
Code samples for the book Professional C# 7 and .NET Core 2.0 (with updates for 2.1), Wrox Press
|
|
ergulkizilkaya/ReCapProject
|
|
microsoft/SqlNexus
SQL Nexus is a tool that helps you identify the root cause of SQL Server performance issues. It loads and analyzes performance data collected by SQL LogScout, SQLDiag or PSSDiag. It can dramatically reduce the amount of time you spend manually analyzing data.
|
|
microsoft/BotFramework-BlogSamples
Welcome to the Bot Framework samples repository. Here you will find sample bots that take advantage of Bot Framework capabilities.
|
|
auth0/auth0.net
.NET client for the Auth0 Authentication & Management APIs.
|
|
microsoft/data-accelerator
Data Accelerator for Apache Spark simplifies onboarding to Streaming of Big Data. It offers a rich, easy to use experience to help with creation, editing and management of Spark jobs on Azure HDInsights or Databricks while enabling the full power of the Spark engine.
|
|
trimble-oss/dba-dash
DBA Dash - SQL Server Monitoring Tool
|
|
martinjw/dbschemareader
Read database metadata (from SqlServer/Oracle/MySql/SQLite/PostgreSql/DB2 etc) into one simple model
|
Version | Downloads | Last updated | |
---|---|---|---|
8.10.0 | 0 | 5/15/2025 | |
8.9.0 | 422,961 | 4/24/2025 | |
8.8.0 | 1,377,493 | 4/8/2025 | |
8.7.0 | 1,066,179 | 3/21/2025 | |
8.6.1 | 1,787,860 | 3/7/2025 | |
8.6.0 | 610,833 | 2/22/2025 | |
8.5.0 | 1,148,056 | 2/15/2025 | |
8.4.0 | 896,207 | 2/7/2025 | |
8.3.1 | 3,504,346 | 1/17/2025 | |
8.3.0 | 5,572,984 | 12/4/2024 | |
8.2.1 | 2,999,197 | 11/15/2024 | |
8.2.0 | 5,442,189 | 11/2/2024 | |
8.1.2 | 4,820,340 | 10/8/2024 | |
8.1.1 | 441,100 | 10/5/2024 | |
8.0.1 | 14,862,222 | 7/23/2024 | |
8.0.0 | 1,263,340 | 7/16/2024 | |
8.0.0-preview1 | 126,340 | 6/19/2024 | |
7.7.1 | 1,505,264 | 7/20/2024 | |
7.7.0 | 20,576 | 7/18/2024 | |
7.6.3 | 2,203,685 | 7/10/2024 | |
7.6.2 | 1,724,146 | 6/20/2024 | |
7.6.1 | 666,261 | 6/17/2024 | |
7.6.0 | 11,080,763 | 5/28/2024 | |
7.5.2 | 2,287,945 | 5/13/2024 | |
7.5.1 | 7,488,694 | 4/5/2024 | |
7.5.0 | 10,701,227 | 3/27/2024 | |
7.4.1 | 3,542,349 | 3/15/2024 | |
7.4.0 | 4,476,348 | 2/26/2024 | |
7.3.1 | 6,796,954 | 2/3/2024 | |
7.3.0 | 511,493 | 1/30/2024 | |
7.2.0 | 5,780,966 | 1/10/2024 | |
7.1.2 | 91,902,778 | 1/9/2024 | |
7.0.3 | 22,423,264 | 10/17/2023 | |
7.0.2 | 540,218 | 9/29/2023 | |
7.0.1 | 253,861 | 9/27/2023 | |
7.0.0 | 2,094,025 | 9/11/2023 | |
7.0.0-preview5 | 339,347 | 9/6/2023 | |
7.0.0-preview4 | 3,925 | 8/29/2023 | |
7.0.0-preview3 | 6,221 | 8/21/2023 | |
7.0.0-preview2 | 4,442 | 8/13/2023 | |
7.0.0-preview | 170,133 | 7/11/2023 | |
6.36.0 | 850,924 | 7/19/2024 | |
6.35.1 | 747,445 | 7/11/2024 | |
6.35.0 | 132,597,126 | 1/9/2024 | |
6.34.0 | 7,131,433 | 10/17/2023 | |
6.33.0 | 3,122,759 | 10/3/2023 | |
6.32.3 | 1,687,607 | 9/5/2023 | |
6.32.2 | 1,568,785 | 8/26/2023 | |
6.32.1 | 2,554,650 | 7/28/2023 | |
6.32.0 | 3,996,704 | 7/12/2023 | |
6.31.0 | 2,051,942 | 6/8/2023 | |
6.30.1 | 1,617,563 | 5/10/2023 | |
6.30.0 | 4,995,652 | 4/26/2023 | |
6.29.0 | 3,010,341 | 4/14/2023 | |
6.28.1 | 422,060 | 4/3/2023 | |
6.27.0 | 4,795,211 | 2/16/2023 | |
6.26.1 | 5,759,284 | 2/7/2023 | |
6.26.0 | 730,201 | 1/20/2023 | |
6.25.1 | 14,945,352 | 12/1/2022 | |
6.25.0 | 4,369,108 | 10/27/2022 | |
6.24.0 | 92,033,693 | 10/13/2022 | |
6.23.1 | 16,810,272 | 9/8/2022 | |
6.23.0 | 118,368 | 9/6/2022 | |
6.22.1 | 540,024 | 8/25/2022 | |
6.22.0 | 8,192,625 | 7/27/2022 | |
6.21.0 | 67,673,122 | 7/1/2022 | |
6.20.0 | 6,291,010 | 6/21/2022 | |
6.19.0 | 6,042,684 | 6/6/2022 | |
6.18.0 | 1,019,447 | 5/19/2022 | |
6.17.0 | 6,658,088 | 4/6/2022 | |
6.16.0 | 5,610,259 | 2/18/2022 | |
6.15.1 | 59,501,254 | 1/20/2022 | |
6.15.0 | 7,610,315 | 12/3/2021 | |
6.14.1 | 2,900,621 | 11/4/2021 | |
6.14.0 | 470,158 | 10/29/2021 | |
6.13.1 | 600,602 | 10/7/2021 | |
6.12.2 | 21,345,607 | 8/20/2021 | |
6.12.1 | 3,208,789 | 8/13/2021 | |
6.12.0 | 2,940,433 | 7/21/2021 | |
6.11.1 | 6,692,940 | 5/21/2021 | |
6.11.0 | 800,603 | 4/27/2021 | |
6.10.2 | 2,003,069 | 4/15/2021 | |
6.10.1 | 781,528 | 4/12/2021 | |
6.10.0 | 171,675,691 | 3/30/2021 | |
6.9.0 | 348,455 | 3/16/2021 | |
6.8.0 | 228,278,285 | 10/13/2020 | |
6.7.2-preview-10803222715 | 13,855 | 8/4/2020 | |
6.7.1 | 70,487,349 | 6/30/2020 | |
6.6.1-preview-10617201806 | 3,128 | 7/10/2020 | |
6.6.0 | 1,146,640 | 5/22/2020 | |
6.5.1 | 807,843 | 4/28/2020 | |
6.5.0 | 9,152,128 | 3/24/2020 | |
5.7.0 | 817,794 | 1/9/2024 | |
5.6.0 | 115,505,778 | 10/19/2019 | |
5.5.0 | 211,995,003 | 6/24/2019 | |
5.4.0 | 13,603,541 | 1/23/2019 | |
5.3.0 | 44,498,940 | 10/5/2018 | |
5.2.4 | 10,484,053 | 6/19/2018 | |
5.2.2 | 2,414,937 | 4/23/2018 | |
5.2.1 | 8,128,684 | 2/8/2018 | |
2.1.5 | 627,680 | 11/17/2017 | |
2.1.4 | 25,220,241 | 6/12/2017 | |
2.1.3 | 202,256 | 2/28/2017 | |
2.1.2 | 2,399,618 | 1/11/2017 | |
2.0.0 | 1,572,610 | 6/27/2016 |