ElijahReva / AspNetCore.Identity.Mongo

This is a MongoDB provider for the ASP.NET Core 2 Identity framework

Home Page:https://matteofabbri.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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";
});

About

This is a MongoDB provider for the ASP.NET Core 2 Identity framework

https://matteofabbri.org

License:MIT License


Languages

Language:C# 73.4%Language:HTML 21.2%Language:CSS 4.6%Language:JavaScript 0.8%