This folder contains various samples to showcase how to use ASP.NET Core Identity with this MongoDB store provider. There is not a huge difference to the standard use of ASP.NET Core Identity apart from hooking the MongoDB store provider. So, it's always helpful to go through the ASP.NET Core Identity documentation first if you haven't already.
In order to run any of the sample here, you need MongoDB exposed through 127.0.0.1:27017
. If you have Docker on you box, you can easily have one by executing the below command:
docker run --name some-mongo -d -p "27017:27017" mongo
You also need .NET Core SDK installed to be able to execute dotnet
commands.
- IdentitySample.Mvc: This is the exact sample in Identity repository, but it works with this MongoDB provider rather than the EntityFramework one. See 4c5fd98 commit for the things that needed changing.