Skip to content
This is a MongoDB provider for the ASP.NET Core 2 Identity framework
Branch: master
Clone or download
Matteo Fabbri
Latest commit f4d775f Apr 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AspNetCore.Identity.Mongo stabilized mongo packages Apr 15, 2019
Sample Site stabilized mongo packages Apr 15, 2019
SelfCheck stabilized mongo packages Apr 15, 2019
Selfcheck
.gitignore new sample site with asp net core 2.2 update Feb 10, 2019
AspNetCore.Identity.Mongo.sln new testing environment Mar 23, 2019
LICENSE.txt license + git ignore May 17, 2018
README.md Update Readme with the correct signature Nov 14, 2018

README.md

Microsoft.AspNetCore.Identity.Mongo

This is a MongoDB provider for the ASP.NET Core 2 Identity framework. It is completely written from scratch and provides support for all Identity framework interfaces:

  • UserClaimStore
  • IUserLoginStore
  • IUserRoleStore
  • IUserPasswordStore
  • IUserSecurityStampStore
  • IUserEmailStore
  • IUserPhoneNumberStore
  • IQueryableUserStore
  • IUserTwoFactorStore
  • IUserLockoutStore
  • IUserAuthenticatorKeyStore
  • IUserTwoFactorRecoveryCodeStore
  • IRoleStore
  • IQueryableRoleStore

How to use:

services.AddIdentityMongoDbProvider<ApplicationUser, ApplicationRole>(identityOptions =>
{
    identityOptions.Password.RequiredLength = 6;
    identityOptions.Password.RequireLowercase = false;
    identityOptions.Password.RequireUppercase = false;
    identityOptions.Password.RequireNonAlphanumeric = false;
    identityOptions.Password.RequireDigit = false;
}, mongoIdentityOptions => {
    mongoIdentityOptions.ConnectionString = "mongodb://localhost/maddalena";
});
You can’t perform that action at this time.