Microsoft.Identity.Web.UI 4.2.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.2.0
                    
NuGet\Install-Package Microsoft.Identity.Web.UI -Version 4.2.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.2.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.2.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.2.0
                    
#r "nuget: Microsoft.Identity.Web.UI, 4.2.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.2.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.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Identity.Web.UI&version=4.2.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 132,162 1/7/2026
4.2.0 110,418 12/17/2025
4.1.1 367,448 11/24/2025
4.1.0 48,225 11/19/2025
4.0.1 297,374 10/20/2025
4.0.0 86,450 10/13/2025
3.14.1 598,888 9/10/2025
3.14.0 174,250 8/28/2025
3.13.2 103,931 8/19/2025
3.13.1 40,002 8/15/2025
3.13.0 82,510 8/8/2025
3.12.0 160,923 7/30/2025
3.11.0 119,940 7/21/2025
3.10.0 229,812 7/5/2025
3.9.4 274,458 6/17/2025
3.9.3 201,217 6/3/2025
3.9.2 146,683 5/23/2025
3.9.1 200,537 5/18/2025
3.9.0 40,689 5/15/2025
3.8.4 484,521 4/24/2025
3.8.3 515,845 4/8/2025
3.8.2 164,543 3/31/2025
3.8.1 128,352 3/21/2025
3.8.0 149,690 3/7/2025
3.7.1 292,217 2/15/2025
3.7.0 125,242 2/7/2025
3.6.2 237,008 1/23/2025
3.6.1 31,748 1/21/2025
3.6.0 54,025 1/17/2025
3.5.0 671,903 12/4/2024
3.4.0 384,062 11/15/2024
3.3.1 290,497 11/2/2024
3.3.0 142,882 10/28/2024
3.2.2 515,858 10/9/2024
3.2.1 69,792 10/5/2024
3.2.0 206,985 9/24/2024
3.1.0 762,333 8/22/2024
3.0.1 649,416 7/23/2024
3.0.0 112,478 7/18/2024
3.0.0-preview3 6,307 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,384 4/29/2024 3.0.0-preview1 is deprecated because it is no longer maintained.
2.21.1 160,645 7/20/2024 2.21.1 is deprecated because it is no longer maintained.
2.21.0 9,554 7/19/2024 2.21.0 is deprecated because it is no longer maintained.
2.20.0 405,279 6/28/2024 2.20.0 is deprecated because it is no longer maintained.
2.19.1 457,655 6/10/2024 2.19.1 is deprecated because it is no longer maintained.
2.19.0 229,262 5/29/2024 2.19.0 is deprecated because it is no longer maintained.
2.18.2 145,314 5/21/2024 2.18.2 is deprecated because it is no longer maintained.
2.18.1 441,997 4/25/2024 2.18.1 is deprecated because it is no longer maintained.
2.18.0 88,833 4/22/2024 2.18.0 is deprecated because it is no longer maintained.
2.17.5 165,186 4/16/2024 2.17.5 is deprecated because it is no longer maintained.
2.17.4 318,070 3/29/2024 2.17.4 is deprecated because it is no longer maintained.
2.17.3 112,978 3/27/2024 2.17.3 is deprecated because it is no longer maintained.
2.17.2 256,336 3/14/2024 2.17.2 is deprecated because it is no longer maintained.
2.17.1 243,989 2/27/2024 2.17.1 is deprecated because it is no longer maintained.
2.17.0 514,509 2/5/2024 2.17.0 is deprecated because it is no longer maintained.
2.16.1 545,815 1/9/2024 2.16.1 is deprecated because it is no longer maintained.
2.16.0 657,065 11/27/2023 2.16.0 is deprecated because it is no longer maintained.
2.15.5 173,402 11/20/2023 2.15.5 is deprecated because it is no longer maintained.
2.15.3 388,044 10/22/2023 2.15.3 is deprecated because it is no longer maintained.
2.15.2 233,684 10/18/2023 2.15.2 is deprecated because it is no longer maintained.
2.15.1 141,179 10/5/2023 2.15.1 is deprecated because it is no longer maintained.
2.14.0 98,034 9/26/2023 2.14.0 is deprecated because it is no longer maintained.
2.13.4 318,606 9/8/2023 2.13.4 is deprecated because it is no longer maintained.
2.13.3 230,726 8/17/2023 2.13.3 is deprecated because it is no longer maintained.
2.13.2 199,590 7/31/2023 2.13.2 is deprecated because it is no longer maintained.
2.13.1 140,900 7/25/2023 2.13.1 is deprecated because it is no longer maintained.
2.13.0 125,628 7/14/2023 2.13.0 is deprecated because it is no longer maintained.
2.12.4 324,555 6/18/2023 2.12.4 is deprecated because it is no longer maintained.
2.12.2 20,815 6/15/2023 2.12.2 is deprecated because it is no longer maintained.
2.11.1 244,341 6/6/2023 2.11.1 is deprecated because it is no longer maintained.
2.11.0 264,004 5/15/2023 2.11.0 is deprecated because it is no longer maintained.
2.10.0 80,078 5/5/2023 2.10.0 is deprecated because it is no longer maintained.
2.9.0 227,542 4/15/2023 2.9.0 is deprecated because it is no longer maintained.
2.8.0 12,457 4/14/2023 2.8.0 is deprecated because it is no longer maintained.
2.7.0 180,278 3/30/2023 2.7.0 is deprecated because it is no longer maintained.
2.6.1 82,991 3/23/2023 2.6.1 is deprecated because it is no longer maintained.
2.5.0 319,390 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,409 12/2/2022 2.0.7-preview is deprecated because it is no longer maintained.
2.0.6-preview 6,186 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,376 9/20/2022 2.0.0-preview is deprecated because it is no longer maintained.
1.26.0 711,352 2/5/2023 1.26.0 is deprecated because it is no longer maintained.
1.25.10 820,529 12/1/2022 1.25.10 is deprecated because it is no longer maintained.
1.25.9 59,707 11/28/2022 1.25.9 is deprecated because it is no longer maintained.
1.25.8 133,323 11/20/2022 1.25.8 is deprecated because it is no longer maintained.
1.25.7 13,349 11/18/2022 1.25.7 is deprecated because it is no longer maintained.
1.25.6 423,345 11/16/2022 1.25.6 is deprecated because it is no longer maintained.
1.25.5 266,492 11/1/2022 1.25.5 is deprecated because it is no longer maintained.
1.25.4 52,089 10/27/2022 1.25.4 is deprecated because it is no longer maintained.
1.25.3 637,399 9/16/2022 1.25.3 is deprecated because it is no longer maintained.
1.25.2 401,600 8/25/2022 1.25.2 is deprecated because it is no longer maintained.
1.25.1 928,037 6/23/2022 1.25.1 is deprecated because it is no longer maintained.
1.25.0 384,955 6/3/2022 1.25.0 is deprecated because it is no longer maintained.
1.24.1 848,412 4/26/2022 1.24.1 is deprecated because it is no longer maintained.
1.24.0 91,232 4/20/2022 1.24.0 is deprecated because it is no longer maintained.
1.23.1 489,158 3/11/2022 1.23.1 is deprecated because it is no longer maintained.
1.23.0 212,082 2/15/2022 1.23.0 is deprecated because it is no longer maintained.
1.22.3 152,706 2/2/2022 1.22.3 is deprecated because it is no longer maintained.
1.22.2 65,414 1/28/2022 1.22.2 is deprecated because it is no longer maintained.
1.22.1 301,920 1/8/2022 1.22.1 is deprecated because it is no longer maintained.
1.22.0 12,623 1/8/2022 1.22.0 is deprecated because it is no longer maintained.
1.21.1 271,924 12/4/2021 1.21.1 is deprecated because it is no longer maintained.
1.21.0 215,561 11/20/2021 1.21.0 is deprecated because it is no longer maintained.
1.20.1 5,173 12/3/2021 1.20.1 is deprecated because it is no longer maintained.
1.20.0 380,099 11/5/2021 1.20.0 is deprecated because it is no longer maintained.
1.19.0 49,929 11/2/2021 1.19.0 is deprecated because it is no longer maintained.
1.19.0-preview 1,987 10/7/2021 1.19.0-preview is deprecated because it is no longer maintained.
1.18.0 221,156 10/6/2021 1.18.0 is deprecated because it is no longer maintained.
1.17.0 164,138 9/20/2021 1.17.0 is deprecated because it is no longer maintained.
1.16.1 131,309 9/6/2021 1.16.1 is deprecated because it is no longer maintained.
1.16.0 1,534,056 8/19/2021 1.16.0 is deprecated because it is no longer maintained.
1.15.2 150,022 7/30/2021 1.15.2 is deprecated because it is no longer maintained.
1.15.1 30,713 7/27/2021 1.15.1 is deprecated because it is no longer maintained.
1.15.0 14,874 7/23/2021 1.15.0 is deprecated because it is no longer maintained.
1.14.1 63,433 7/15/2021 1.14.1 is deprecated because it is no longer maintained.
1.14.0 205,013 6/23/2021 1.14.0 is deprecated because it is no longer maintained.
1.13.1 49,896 6/15/2021 1.13.1 is deprecated because it is no longer maintained.
1.13.0 30,370 6/11/2021 1.13.0 is deprecated because it is no longer maintained.
1.12.0 64,170 6/2/2021 1.12.0 is deprecated because it is no longer maintained.
1.11.0 64,664 5/24/2021 1.11.0 is deprecated because it is no longer maintained.
1.10.0 90,459 5/17/2021 1.10.0 is deprecated because it is no longer maintained.
1.9.2 112,920 5/4/2021 1.9.2 is deprecated because it is no longer maintained.
1.9.1 125,013 4/14/2021 1.9.1 is deprecated because it is no longer maintained.
1.9.0 20,411 4/12/2021 1.9.0 is deprecated because it is no longer maintained.
1.8.2 127,454 3/23/2021 1.8.2 is deprecated because it is no longer maintained.
1.8.1 43,913 3/16/2021 1.8.1 is deprecated because it is no longer maintained.
1.8.0 62,555 3/10/2021 1.8.0 is deprecated because it is no longer maintained.
1.7.0 115,955 2/27/2021 1.7.0 is deprecated because it is no longer maintained.
1.6.0 104,259 2/12/2021 1.6.0 is deprecated because it is no longer maintained.
1.5.1 188,799 1/21/2021 1.5.1 is deprecated because it is no longer maintained.
1.5.0 12,075 1/20/2021 1.5.0 is deprecated because it is no longer maintained.
1.4.1 144,679 12/15/2020 1.4.1 is deprecated because it is no longer maintained.
1.4.0 158,827 12/9/2020 1.4.0 is deprecated because it is no longer maintained.
1.3.0 192,491 11/11/2020 1.3.0 is deprecated because it is no longer maintained.
1.2.0 75,509 10/23/2020 1.2.0 is deprecated because it is no longer maintained.
1.1.0 602,526 10/6/2020 1.1.0 is deprecated because it is no longer maintained.
1.0.0 92,322 9/30/2020 1.0.0 is deprecated because it is no longer maintained.
0.4.0-preview 39,021 9/11/2020 0.4.0-preview is deprecated because it is no longer maintained.
0.3.1-preview 27,099 8/27/2020 0.3.1-preview is deprecated because it is no longer maintained.
0.3.0-preview 4,787,590 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,479 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,184 5/7/2020 0.1.2-preview is deprecated because it is no longer maintained.
0.1.1-preview 22,025 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.