Managing AspIdentity With MongoDB And AspNetCore-2.x

18-Feb-20181 Min Read

Install the Nuget Package#

Install MongoAspNetCore Nuget Package :

Add configuration#

Add MongoDb connection details in appsettings.Development.json.

Add AspIdentity with MongoDB#

Update SigninManager (optional)#

Replace all the SigninManager<ApplicationUser> and ApplicationUser declarations with MongoSigninManager<User> and User (optional)


This step is applicable only if your base project is the default AspIdentity Template with Individual Account authentication. For more information on this, please refer the tutorial linked above.