Description
AspNetCore.Identity.Mongo is a MongoDB storage provider for ASP.NET Core Identity, written from scratch. It implements the Identity store interfaces for users, roles, claims, logins, passwords, security stamps, email, phone numbers, two-factor authentication, lockout, authenticator keys, authentication tokens and recovery codes. It is installed from NuGet. The README shows the simplest setup, a setup with Identity and Mongo options, custom User and Role models, and a different primary key type in place of the default MongoDB ObjectId. You can also register only the stores. The README says the latest package supports only .NET versions that Microsoft currently maintains, and includes a table for older versions. From version 9.0.0 the library no longer creates indexes on the Users collection, because they could not be changed and could conflict with your own indexes, so you manage them yourself. The old index definitions are kept in the README for reference. A migration section covers upgrading from older releases, which may include breaking changes.…
Highlights
- Implements the ASP.NET Core Identity store interfaces
- Installed from NuGet
- Custom User and Role models
- Custom primary key types
- Stores can be added on their own
Ratings & Reviews
No ratings yet
Be the first to rate AspNetCore.Identity.Mongo.
People also visit

prisma-mongodb-upgrade
Decision and migration guide for Prisma ORM MongoDB projects on v6
AspNetCore.Identity.Mongo FAQ
What is AspNetCore.Identity.Mongo?
A MongoDB provider for ASP.NET Core Identity, so user and role data can be stored in MongoDB.
How do I install it?
Install the package from NuGet, then follow the setup examples in the README.
Which .NET versions does it support?
The latest package supports only .NET versions Microsoft currently maintains. The README has a table for older .NET versions.
Does it create indexes for me?
Not on the Users collection from version 9.0.0. The README says you manage your own indexes and keeps the old definitions for reference.
What are the best AspNetCore.Identity.Mongo alternatives?
Popular alternatives to AspNetCore.Identity.Mongo include Oidc.Server, Comcms Core and TheIdServer. See all AspNetCore.Identity.Mongo alternatives









