利用 Microsoft 身份平台和 Azure AD B2C 助力创建受保护的 Web 应用程序和 Web API
利用 Microsoft 身份平台和 Azure AD B2C 助力创建受保护的 Web 应用程序和 Web API
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 |
|---|
See Long Term Support policy for details.
The following table lists IdentityWeb versions currently supported and receiving security fixes.
Understanding how to properly configure authentication authorities is crucial for Azure AD, B2C, and CIAM applications:
This is the correct repo to file issues.
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.
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.
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.
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.
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.
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=TrueYou can also set the TargetNetNext environment variable on your machine with the value True.
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=TrueNote: .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.
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,或尚未同步最近议题。