百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

microsoft-identity-web

> 数据库
开源

利用 Microsoft 身份平台和 Azure AD B2C 助力创建受保护的 Web 应用程序和 Web API

785 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

利用 Microsoft 身份平台和 Azure AD B2C 助力创建受保护的 Web 应用程序和 Web API

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:

  • Web applications, which sign in users and, optionally, call web APIs
  • Protected web APIs, which optionally call protected downstream web APIs

Quick links:

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

Nuget package

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 Monthly Active Not planned.
✅Supported versions: from 3.0.0 to
⚠️Unsupported versions ` 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

  • The conceptual documentation is currently available from the Wiki pages.
  • Code samples are available for web app samples and web API samples

Authority Configuration

Understanding how to properly configure authentication authorities is crucial for Azure AD, B2C, and CIAM applications:

  • Authority Configuration & Precedence Guide - Comprehensive guide explaining how Authority, Instance, and TenantId work together
  • B2C Authority Examples - Azure AD B2C-specific configuration patterns and best practices
  • CIAM Authority Examples - Customer Identity Access Management (CIAM) scenarios with custom domains
  • Migration Guide - Upgrade path for existing applications and resolving configuration conflicts
  • Authority FAQ - Common questions and troubleshooting tips

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 [email protected] 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 [email protected] 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

  • Install .NET 10 preview SDK from https://dotnet.microsoft.com/download/dotnet/10.0

Building with .NET 10 Preview

To build the solution with .NET 10 preview support:

bash
# 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:

bash
# 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").

Issues· 333 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#aadv2asp-net-coreauthenticationmicrosoft-identity-platform

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类数据库
定价开源

> 相关工具

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库