title: How to implement ASP.NET Core 3.1 Identity with MongoDB?
body: <p><a href="https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity?view=aspnetcore-3.1&amp;tabs=visual-studio" rel="nofollow noreferrer">ASP.NET Core 3.1 Identity</a> is an API to simplify backend and logical code to manage users, passwords, profile data, roles, claims, tokens, email confirmation, and more.</p>
  <p>For Visual Studio, it <a href="https://docs.microsoft.com/en-us/aspnet/core/security/authentication/scaffold-identity" rel="nofollow noreferrer">support scaffolding</a> to provide multiple templates page but requires <code>DataContext</code> that relies on <a href="https://docs.microsoft.com/en-us/ef/core/providers/?tabs=dotnet-core-cli" rel="nofollow noreferrer">Entity Framework</a>, which currently support CosmosDB for Core 3.1, the only NoSQL database.</p>
  <p>What are the options available to implement ASP.NET Core Identity and allow scaffolding?</p>