![]() |
VOOZH | about |
dotnet add package AspNetCore.Identity.CosmosDb --version 12.0.2
NuGet\Install-Package AspNetCore.Identity.CosmosDb -Version 12.0.2
<PackageReference Include="AspNetCore.Identity.CosmosDb" Version="12.0.2" />
<PackageVersion Include="AspNetCore.Identity.CosmosDb" Version="12.0.2" />Directory.Packages.props
<PackageReference Include="AspNetCore.Identity.CosmosDb" />Project file
paket add AspNetCore.Identity.CosmosDb --version 12.0.2
#r "nuget: AspNetCore.Identity.CosmosDb, 12.0.2"
#:package AspNetCore.Identity.CosmosDb@12.0.2
#addin nuget:?package=AspNetCore.Identity.CosmosDb&version=12.0.2Install as a Cake Addin
#tool nuget:?package=AspNetCore.Identity.CosmosDb&version=12.0.2Install as a Cake Tool
AspNetCore.Identity.CosmosDb is a .NET 10 ASP.NET Core Identity provider backed by Azure Cosmos DB and EF Core Cosmos. It stores users, roles, claims, tokens, external logins, and passkeys in Cosmos DB while preserving the standard ASP.NET Core Identity programming model.
Breaking change: This release line moved to .NET 10 and adds ASP.NET Core Identity passkey support.
Detailed migration and impact notes: .NET 10 + Passkey Upgrade Summary
Package versions now follow SemVer 2.0 for NuGet publishing and no longer mirror the target .NET version number.
This means you may see a larger version jump (for example, from a .NET-aligned version to 12.0.0) without an equivalent framework jump. The target framework and compatibility are still documented separately in this README and in release notes.
UserManager<TUser> and RoleManager<TRole> supportdotnet add package AspNetCore.Identity.CosmosDb
using AspNetCore.Identity.CosmosDb;
using AspNetCore.Identity.CosmosDb.Extensions;
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;
var connectionString = builder.Configuration.GetConnectionString("CosmosDb")!;
var databaseName = builder.Configuration["CosmosDb:DatabaseName"]!;
builder.Services.AddDbContext<ApplicationDbContext>(options =>
options.UseCosmos(connectionString, databaseName));
builder.Services.Configure<IdentityPasskeyOptions>(options =>
{
options.ServerDomain = builder.Configuration["Passkeys:ServerDomain"]!;
});
builder.Services
.AddCosmosIdentity<ApplicationDbContext, IdentityUser, IdentityRole, string>()
.AddDefaultTokenProviders()
.AddDefaultUI();
Create your context by inheriting from CosmosIdentityDbContext<TUser, TRole, TKey> and call EnsureCreatedAsync() during startup to provision the Cosmos database and required containers.
The package includes passkey persistence plus reusable passkey API endpoints and a packaged JavaScript client.
builder.Services.AddCosmosPasskeyUiIntegration(options =>
{
options.RoutePrefix = "/identity/passkeys";
options.ClientScriptPath = "/identity/passkeys/client.js";
});
app.MapCosmosPasskeyUiEndpoints<IdentityUser>();
This package is part of the SkyCMS project and the demo app in this repository is the best end-to-end reference implementation.
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 3 NuGet packages that depend on AspNetCore.Identity.CosmosDb:
| Package | Downloads |
|---|---|
|
Cosmos.Common
This package contains all the common methods and objects used by the Cosmos CMS editor website, and by any website service the role of a publishing website. |
|
|
Cosmos.Cms.Common
This package contains all the common methods and objects used by the Cosmos CMS editor website, and by any website service the role of a publishing website. |
|
|
Brupper.AspNetCore.Identity
Package Description |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 12.0.2 | 1,934 | 4/4/2026 |
| 12.0.1 | 159 | 4/4/2026 |
| 12.0.0 | 154 | 4/4/2026 |
| 10.0.5.1 | 192 | 4/2/2026 |
| 9.1.1-beta4 | 246 | 9/1/2025 |
| 9.1.1-beta3 | 256 | 8/28/2025 |
| 9.1.0.3-preview | 268 | 8/28/2025 |
| 9.1.0.2-preview | 229 | 8/13/2025 |
| 9.1.0.1-preview | 223 | 8/13/2025 |
| 9.1.0-preview | 225 | 8/13/2025 |
| 9.0.1.2 | 6,113 | 8/11/2025 |
| 9.0.1 | 8,853 | 1/21/2025 |
| 9.0.0.3 | 666 | 1/10/2025 |
| 9.0.0 | 2,651 | 12/6/2024 |
| 8.0.7 | 6,804 | 9/3/2024 |
| 8.0.6 | 3,265 | 5/29/2024 |
| 8.0.4 | 780 | 4/18/2024 |
| 8.0.3 | 1,118 | 3/12/2024 |
| 8.0.2 | 1,746 | 2/15/2024 |
Added passkey (WebAuthn) support. Upgraded to .NET 10 and EF Core 10. Versioning now follows SemVer 2.0 and no longer mirrors the .NET target version.