-
Notifications
You must be signed in to change notification settings - Fork 270
Home
Microsoft Identity Web is a library which contains a set of reusable classes used in conjunction with ASP.NET Core, or OWIN for integrating with the Microsoft identity platform (formerly Azure AD v2.0 endpoint), AAD B2C, and Microsoft Entra External ID
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
- Daemon scenarios, where an apps calls a protected API on behalf of itself (not a user)
See Why use Microsoft.Identity.Web?
Microsoft.Identity.Web is available as a set of NuGet packages (Microsoft.Identity.Web) for .NET 6+ and OWIN. Web apps can also use the (Microsoft.Identity.Web.UI) NuGet package, and there are packages to help you call Microsoft Graph (Microsoft.Identity.Web.GraphServiceClient or a downstream API (Microsoft.Identity.Web.DownstreamApi. Microsoft.Identity.Web also brings solutions for client credentials (certificates, and federation identity credentials), and decrypt credentials.
Using an appsettings.json file is the easiest way to configure your authentication. Adding the Microsoft.Identity.Web JSON schema to your appsettings.json file further improves ease of configuration.
You can create new web apps and web APIs using the Microsoft identity platform (formerly Azure AD v2.0) or Azure AD B2C, and leveraging Microsoft.Identity.Web. For this:
- use the following
dotnet newcommands.
Audience: users to sign-in:
- AAD = Work or School accounts
- MSA = Personal Microsoft accounts
- B2C = Social accounts or local accounts (Azure AD B2C)
| Application | Audience | Dotnet new command |
|---|---|---|
| Web API | AAD - single tenant | dotnet new webapi --auth SingleOrg |
| Web API | B2C | dotnet new webapi --auth IndividualB2C |
| Razor Web app | AAD - single tenant | dotnet new webapp --auth SingleOrg |
| Razor Web app | AAD + MSA | dotnet new webapp --auth MultiOrg |
| Razor Web app | B2C | dotnet new webapp --auth IndividualB2C |
| MVC Web app | AAD - single tenant | dotnet new mvc --auth SingleOrg |
| MVC Web app | AAD + MSA | dotnet new mvc --auth MultiOrg |
| MVC Web app | B2C | dotnet new mvc --auth IndividualB2C |
| Date | Release | Blog post | Main features |
|---|---|---|---|
| (Not Started) | Microsoft Identity Web vFuture | ||
| (Next/In progress) | See milestones | ||
| Releases | All releases | ||
| July 23, 2024 | 3.0.1 | Updated Microsoft.IdentityModel.* packages to 8.0.1. | |
| July 18, 2024 | 3.0.0 | Updates to address CVE-2024-30105. Updated Microsoft.IdentityModel.* packages to 8.0.0, Microsoft.Identity.Lab API to 1.0.2, and Microsoft.Identity.Abstractions to 6.0.0. | |
| June 19, 2024 | 3.0.0-preview3 | Updated Microsoft.IdentityModel.* to 8.0.0-preview3. | |
| June 11, 2024 | 3.0.0-preview2 | Changed GetSignedAssertion API, updated to .NET 9 Preview 4, updated MSAL .Net to 4.61.3, and updated Azure.Identity to 1.11.4. |
|
| April 29, 2024 | 3.0.0-preview1 | Remove support for netcoreapp3.1, support for net 5.0 in the Microsoft.Identity.Web.UI package, added support for .net9.0-preview, added processing for AcceptHeader and ContentType, and added target Microsoft.IdentityModel 7x in OWIN targets. |
|
| July 20, 2024 | 2.21.1 | Updated to Microsoft.IdentityModel 7.7.1 | |
| July 19, 2024 | 2.21.0 | Updated to Microsoft.IdentityModel 7.7.0 and package updates to address CVE-2024-30105 | |
| June 28, 2024 | 2.20.0 | Updated to Microsoft.Identity.Abstractions 6.0.0 | |
| June 10, 2024 | 2.19.1 |