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)
note
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.