Microsoft.Identity.Web.UI 4.1.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Microsoft.Identity.Web.UI --version 4.1.0
                    
NuGet\Install-Package Microsoft.Identity.Web.UI -Version 4.1.0
                    
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.Web.UI" Version="4.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Identity.Web.UI" Version="4.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.Identity.Web.UI" />
                    
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.Web.UI --version 4.1.0
                    
#r "nuget: Microsoft.Identity.Web.UI, 4.1.0"
                    
#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.
#:package Microsoft.Identity.Web.UI@4.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.Identity.Web.UI&version=4.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Identity.Web.UI&version=4.1.0
                    
Install as a Cake Tool

Microsoft Identity Web

Microsoft Identity Web is a library which contains a set of reusable classes used in conjunction with ASP.NET Core for integrating with the Microsoft identity platform (formerly Azure AD v2.0 endpoint) and AAD B2C.

This library is for specific usage with:

Quick links:

Conceptual documentation Getting Started Reference documentation Sample Code Web App Sample Code Web API Support

Nuget package

NuGet

Version Lifecycle and Support Matrix

See Long Term Support policy for details.

The following table lists IdentityWeb versions currently supported and receiving security fixes.

Major Version Last Release Patch release date Support phase End of support
3.x NuGet Monthly Active Not planned.<br/>✅Supported versions: from 3.0.0 to NuGet<br/>⚠️Unsupported versions < 3.0.0.

Build Status

Build Status

Release notes, roadmap and SLA

Release notes and roadmap

The Microsoft Identity Web roadmap is available from Roadmap in the Wiki pages, along with release notes.

Support SLA

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

    Minor versions are bugfixes or features with non-breaking (additive) API changes. It is expected apps can upgrade. Therefore, we will not patch old minor versions of the library. You should also confirm, in issue repros, that you are using the latest minor version before the Microsoft Identity Web team spends time investigating an issue.

Using Microsoft Identity Web

Where do I file issues

This is the correct repo to file issues.

Community Help and Support

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

We use Stack Overflow with the community to provide support, using the tags web-app, web-api, asp.net-core, microsoft-identity-web. We highly recommend you ask your questions on Stack Overflow first and browse existing issues to see if someone has asked your question before.

To provide a recommendation, visit our User Voice page.

Contribute

We enthusiastically welcome contributions and feedback. You can 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.x) 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 with as much detail as possible. Your submission may be eligible for a bounty through the Microsoft Bounty program. Please do not post security issues to GitHub Issues or any other public site. We will contact you shortly upon receiving the information. We encourage you to get notifications of when security incidents occur by visiting this page and subscribing to Security Advisory Alerts.

Building with .NET Preview Versions

Microsoft Identity Web supports building and testing with .NET preview versions using the TargetNetNext conditional compilation flag. This enables early testing and compatibility validation with the latest .NET preview releases.

Prerequisites

Building with .NET 10 Preview

To build the solution with .NET 10 preview support:

# Build with .NET 10 preview targets included
dotnet build Microsoft.Identity.Web.sln -p:TargetNetNext=True

# Or using MSBuild
msbuild Microsoft.Identity.Web.sln -p:TargetNetNext=True

You can also set the TargetNetNext environment variable on your machine with the value True.

Testing with .NET 10 Preview

To run tests targeting .NET 10 preview:

# Run tests with .NET 10 preview (conditional)
dotnet test Microsoft.Identity.Web.sln -f net10.0 -p:TargetNetNext=True

Note: .NET 10 preview support is conditional and requires setting TargetNetNext=True during build/test operations. This ensures compatibility with the latest preview versions while maintaining stability for production builds.

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 (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License (the "License").

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (29)

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

Package Downloads
FenixAlliance.ACL.Dependencies

Application Component for the Alliance Business Suite.

Blauhaus.EVACS.Admin.Blazor

Package Description

devprime.stack.security

DevPrime Security

AIC.Core.Identity.Extensions.WebApi

Shared .NET library for Aerospace, Intelligence, and Cyber solutions.

AIC.Core.Identity.Data.Controllers

Shared .NET library for Aerospace, Intelligence, and Cyber solutions.

GitHub repositories (17)

Showing the top 17 popular GitHub repositories that depend on Microsoft.Identity.Web.UI:

Repository Stars
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
MicrosoftLearning/AZ-204-DevelopingSolutionsforMicrosoftAzure
AZ-204: Developing solutions for Microsoft Azure
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
Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2
An ASP.NET Core Web App which lets sign-in users (including in your org, many orgs, orgs + personal accounts, sovereign clouds) and call Web APIs (including Microsoft Graph)
OfficeDev/TrainingContent
Training Content used for developer.microsoft.com/office
JonPSmith/AuthPermissions.AspNetCore
This library provides extra authorization and multi-tenant features to an ASP.NET Core application.
microsoft/hack-together
Hack Together: Microsoft Graph and .NET is a hackathon for .NET developers to learn Microsoft Graph and Microsoft 365.
isaacrlevin/presencelight
PresenceLight is a solution to broadcast your various statuses to light bulbs.
Azure/azure-saas
The Azure SaaS Development Kit (ASDK) provides a reference architecture, deployable reference implementation and tools to help developers, startups, ISVs and Enterprises deliver their applications as a SaaS service. A platform for platform creators.
pnp/pnpcore
The PnP Core SDK is a modern .NET SDK designed to work for Microsoft 365. It provides a unified object model for working with SharePoint Online and Teams which is agnostic to the underlying API's being called
Daniel-Krzyczkowski/Cars-Island-On-Azure
Cars Island is a fake car rental company which used Microsoft Azure cloud services to implement the system for managing car renting.
ProfessionalCSharp/ProfessionalCSharp2021
Source code for Professional C# and .NET 2021 Edition (with updates for C# 11 and .NET 7)
dotnet/AspNetCore.Docs.Samples
microsoftgraph/aspnet-snippets-sample
A repository of code snippets that use Microsoft Graph to perform common tasks such as sending email, managing groups, and other activities from an ASP.NET Core MVC app. This sample uses the Microsoft Graph .NET Client Library to work with data, and the Microsoft Identity Web Library for authentication on the Microsoft identity platform v2.0 endpoint.
Azure/modern-web-app-pattern-dotnet
The Modern Web App Pattern is a set of objectives to help you apply an iterative change to modernize a cloud deployed monolith. This content builds on the Reliable Web App. This repo contains a reference implementation of a Modern Web App for .NET.
damienbod/bff-aspnetcore-angular
Backend for frontend security using Angular CLI and ASP.NET Core backend
microsoftgraph/aspnetcore-webhooks-sample
This sample shows how to subscribe for Microsoft Graph webhooks using application (app-only) permissions and the Azure AD endpoint.
Version Downloads Last Updated
4.3.0 138,516 1/7/2026
4.2.0 111,929 12/17/2025
4.1.1 369,995 11/24/2025
4.1.0 48,575 11/19/2025
4.0.1 298,970 10/20/2025
4.0.0 86,899 10/13/2025
3.14.1 600,775 9/10/2025
3.14.0 175,024 8/28/2025
3.13.2 104,400 8/19/2025
3.13.1 40,082 8/15/2025
3.13.0 82,755 8/8/2025
3.12.0 161,201 7/30/2025
3.11.0 120,320 7/21/2025
3.10.0 230,491 7/5/2025
3.9.4 275,006 6/17/2025
3.9.3 201,741 6/3/2025
3.9.2 147,060 5/23/2025
3.9.1 201,344 5/18/2025
3.9.0 41,013 5/15/2025
3.8.4 485,645 4/24/2025
3.8.3 516,874 4/8/2025
3.8.2 164,947 3/31/2025
3.8.1 128,542 3/21/2025
3.8.0 149,926 3/7/2025
3.7.1 292,506 2/15/2025
3.7.0 125,384 2/7/2025
3.6.2 237,352 1/23/2025
3.6.1 31,853 1/21/2025
3.6.0 54,104 1/17/2025
3.5.0 672,646 12/4/2024
3.4.0 384,398 11/15/2024
3.3.1 290,903 11/2/2024
3.3.0 143,079 10/28/2024
3.2.2 516,379 10/9/2024
3.2.1 69,826 10/5/2024
3.2.0 207,184 9/24/2024
3.1.0 764,149 8/22/2024
3.0.1 650,278 7/23/2024
3.0.0 112,657 7/18/2024
3.0.0-preview3 6,317 6/19/2024 3.0.0-preview3 is deprecated because it is no longer maintained.
3.0.0-preview2 14,585 6/11/2024 3.0.0-preview2 is deprecated because it is no longer maintained.
3.0.0-preview1 11,386 4/29/2024 3.0.0-preview1 is deprecated because it is no longer maintained.
2.21.1 160,874 7/20/2024 2.21.1 is deprecated because it is no longer maintained.
2.21.0 9,615 7/19/2024 2.21.0 is deprecated because it is no longer maintained.
2.20.0 405,737 6/28/2024 2.20.0 is deprecated because it is no longer maintained.
2.19.1 458,022 6/10/2024 2.19.1 is deprecated because it is no longer maintained.
2.19.0 229,438 5/29/2024 2.19.0 is deprecated because it is no longer maintained.
2.18.2 145,387 5/21/2024 2.18.2 is deprecated because it is no longer maintained.
2.18.1 442,289 4/25/2024 2.18.1 is deprecated because it is no longer maintained.
2.18.0 88,925 4/22/2024 2.18.0 is deprecated because it is no longer maintained.
2.17.5 165,338 4/16/2024 2.17.5 is deprecated because it is no longer maintained.
2.17.4 318,226 3/29/2024 2.17.4 is deprecated because it is no longer maintained.
2.17.3 113,086 3/27/2024 2.17.3 is deprecated because it is no longer maintained.
2.17.2 256,475 3/14/2024 2.17.2 is deprecated because it is no longer maintained.
2.17.1 244,130 2/27/2024 2.17.1 is deprecated because it is no longer maintained.
2.17.0 514,887 2/5/2024 2.17.0 is deprecated because it is no longer maintained.
2.16.1 545,982 1/9/2024 2.16.1 is deprecated because it is no longer maintained.
2.16.0 657,317 11/27/2023 2.16.0 is deprecated because it is no longer maintained.
2.15.5 173,478 11/20/2023 2.15.5 is deprecated because it is no longer maintained.
2.15.3 388,187 10/22/2023 2.15.3 is deprecated because it is no longer maintained.
2.15.2 233,848 10/18/2023 2.15.2 is deprecated because it is no longer maintained.
2.15.1 141,214 10/5/2023 2.15.1 is deprecated because it is no longer maintained.
2.14.0 98,077 9/26/2023 2.14.0 is deprecated because it is no longer maintained.
2.13.4 318,846 9/8/2023 2.13.4 is deprecated because it is no longer maintained.
2.13.3 230,759 8/17/2023 2.13.3 is deprecated because it is no longer maintained.
2.13.2 199,642 7/31/2023 2.13.2 is deprecated because it is no longer maintained.
2.13.1 140,947 7/25/2023 2.13.1 is deprecated because it is no longer maintained.
2.13.0 125,659 7/14/2023 2.13.0 is deprecated because it is no longer maintained.
2.12.4 324,610 6/18/2023 2.12.4 is deprecated because it is no longer maintained.
2.12.2 20,829 6/15/2023 2.12.2 is deprecated because it is no longer maintained.
2.11.1 244,479 6/6/2023 2.11.1 is deprecated because it is no longer maintained.
2.11.0 264,077 5/15/2023 2.11.0 is deprecated because it is no longer maintained.
2.10.0 80,111 5/5/2023 2.10.0 is deprecated because it is no longer maintained.
2.9.0 227,581 4/15/2023 2.9.0 is deprecated because it is no longer maintained.
2.8.0 12,469 4/14/2023 2.8.0 is deprecated because it is no longer maintained.
2.7.0 180,374 3/30/2023 2.7.0 is deprecated because it is no longer maintained.
2.6.1 83,005 3/23/2023 2.6.1 is deprecated because it is no longer maintained.
2.5.0 319,476 2/27/2023 2.5.0 is deprecated because it is no longer maintained.
2.0.8-preview 19,003 12/16/2022 2.0.8-preview is deprecated because it is no longer maintained.
2.0.7-preview 5,418 12/2/2022 2.0.7-preview is deprecated because it is no longer maintained.
2.0.6-preview 6,187 11/20/2022 2.0.6-preview is deprecated because it is no longer maintained.
2.0.5-preview 2,432 11/7/2022 2.0.5-preview is deprecated because it is no longer maintained.
2.0.4-preview 760 10/27/2022 2.0.4-preview is deprecated because it is no longer maintained.
2.0.3-preview 8,961 10/19/2022 2.0.3-preview is deprecated because it is no longer maintained.
2.0.2-preview 1,868 10/9/2022 2.0.2-preview is deprecated because it is no longer maintained.
2.0.0-preview 4,377 9/20/2022 2.0.0-preview is deprecated because it is no longer maintained.
1.26.0 711,506 2/5/2023 1.26.0 is deprecated because it is no longer maintained.
1.25.10 820,707 12/1/2022 1.25.10 is deprecated because it is no longer maintained.
1.25.9 59,731 11/28/2022 1.25.9 is deprecated because it is no longer maintained.
1.25.8 133,378 11/20/2022 1.25.8 is deprecated because it is no longer maintained.
1.25.7 13,360 11/18/2022 1.25.7 is deprecated because it is no longer maintained.
1.25.6 423,522 11/16/2022 1.25.6 is deprecated because it is no longer maintained.
1.25.5 266,611 11/1/2022 1.25.5 is deprecated because it is no longer maintained.
1.25.4 52,107 10/27/2022 1.25.4 is deprecated because it is no longer maintained.
1.25.3 637,460 9/16/2022 1.25.3 is deprecated because it is no longer maintained.
1.25.2 401,667 8/25/2022 1.25.2 is deprecated because it is no longer maintained.
1.25.1 928,127 6/23/2022 1.25.1 is deprecated because it is no longer maintained.
1.25.0 385,028 6/3/2022 1.25.0 is deprecated because it is no longer maintained.
1.24.1 848,516 4/26/2022 1.24.1 is deprecated because it is no longer maintained.
1.24.0 91,244 4/20/2022 1.24.0 is deprecated because it is no longer maintained.
1.23.1 489,306 3/11/2022 1.23.1 is deprecated because it is no longer maintained.
1.23.0 212,193 2/15/2022 1.23.0 is deprecated because it is no longer maintained.
1.22.3 152,726 2/2/2022 1.22.3 is deprecated because it is no longer maintained.
1.22.2 65,423 1/28/2022 1.22.2 is deprecated because it is no longer maintained.
1.22.1 301,966 1/8/2022 1.22.1 is deprecated because it is no longer maintained.
1.22.0 12,631 1/8/2022 1.22.0 is deprecated because it is no longer maintained.
1.21.1 271,968 12/4/2021 1.21.1 is deprecated because it is no longer maintained.
1.21.0 215,596 11/20/2021 1.21.0 is deprecated because it is no longer maintained.
1.20.1 5,181 12/3/2021 1.20.1 is deprecated because it is no longer maintained.
1.20.0 380,272 11/5/2021 1.20.0 is deprecated because it is no longer maintained.
1.19.0 49,938 11/2/2021 1.19.0 is deprecated because it is no longer maintained.
1.19.0-preview 1,988 10/7/2021 1.19.0-preview is deprecated because it is no longer maintained.
1.18.0 221,205 10/6/2021 1.18.0 is deprecated because it is no longer maintained.
1.17.0 164,187 9/20/2021 1.17.0 is deprecated because it is no longer maintained.
1.16.1 131,334 9/6/2021 1.16.1 is deprecated because it is no longer maintained.
1.16.0 1,534,507 8/19/2021 1.16.0 is deprecated because it is no longer maintained.
1.15.2 150,036 7/30/2021 1.15.2 is deprecated because it is no longer maintained.
1.15.1 30,721 7/27/2021 1.15.1 is deprecated because it is no longer maintained.
1.15.0 14,882 7/23/2021 1.15.0 is deprecated because it is no longer maintained.
1.14.1 63,442 7/15/2021 1.14.1 is deprecated because it is no longer maintained.
1.14.0 205,030 6/23/2021 1.14.0 is deprecated because it is no longer maintained.
1.13.1 49,904 6/15/2021 1.13.1 is deprecated because it is no longer maintained.
1.13.0 30,379 6/11/2021 1.13.0 is deprecated because it is no longer maintained.
1.12.0 64,187 6/2/2021 1.12.0 is deprecated because it is no longer maintained.
1.11.0 64,672 5/24/2021 1.11.0 is deprecated because it is no longer maintained.
1.10.0 90,528 5/17/2021 1.10.0 is deprecated because it is no longer maintained.
1.9.2 112,948 5/4/2021 1.9.2 is deprecated because it is no longer maintained.
1.9.1 125,025 4/14/2021 1.9.1 is deprecated because it is no longer maintained.
1.9.0 20,419 4/12/2021 1.9.0 is deprecated because it is no longer maintained.
1.8.2 127,464 3/23/2021 1.8.2 is deprecated because it is no longer maintained.
1.8.1 43,927 3/16/2021 1.8.1 is deprecated because it is no longer maintained.
1.8.0 62,566 3/10/2021 1.8.0 is deprecated because it is no longer maintained.
1.7.0 115,968 2/27/2021 1.7.0 is deprecated because it is no longer maintained.
1.6.0 104,270 2/12/2021 1.6.0 is deprecated because it is no longer maintained.
1.5.1 188,837 1/21/2021 1.5.1 is deprecated because it is no longer maintained.
1.5.0 12,083 1/20/2021 1.5.0 is deprecated because it is no longer maintained.
1.4.1 144,731 12/15/2020 1.4.1 is deprecated because it is no longer maintained.
1.4.0 158,850 12/9/2020 1.4.0 is deprecated because it is no longer maintained.
1.3.0 192,509 11/11/2020 1.3.0 is deprecated because it is no longer maintained.
1.2.0 75,519 10/23/2020 1.2.0 is deprecated because it is no longer maintained.
1.1.0 602,589 10/6/2020 1.1.0 is deprecated because it is no longer maintained.
1.0.0 92,432 9/30/2020 1.0.0 is deprecated because it is no longer maintained.
0.4.0-preview 39,024 9/11/2020 0.4.0-preview is deprecated because it is no longer maintained.
0.3.1-preview 27,100 8/27/2020 0.3.1-preview is deprecated because it is no longer maintained.
0.3.0-preview 4,788,239 8/25/2020 0.3.0-preview is deprecated because it is no longer maintained.
0.2.3-preview 13,946 8/10/2020 0.2.3-preview is deprecated because it is no longer maintained.
0.2.2-preview 5,415 8/7/2020 0.2.2-preview is deprecated because it is no longer maintained.
0.2.1-preview 30,509 7/25/2020 0.2.1-preview is deprecated because it is no longer maintained.
0.2.0-preview 22,090 7/13/2020 0.2.0-preview is deprecated because it is no longer maintained.
0.1.5-preview 46,484 6/16/2020 0.1.5-preview is deprecated because it is no longer maintained.
0.1.4-preview 35,979 6/1/2020 0.1.4-preview is deprecated because it is no longer maintained.
0.1.3-preview 24,730 5/16/2020 0.1.3-preview is deprecated because it is no longer maintained.
0.1.2-preview 11,185 5/7/2020 0.1.2-preview is deprecated because it is no longer maintained.
0.1.1-preview 22,026 4/22/2020 0.1.1-preview is deprecated because it is no longer maintained.
0.1.0-preview 15,364 4/13/2020 0.1.0-preview is deprecated because it is no longer maintained.