This year in the interview asked a single point of knowledge login, then hesitated do not know how to answer, so the interview failed. Back home he started the Internet to find information, but suffer from difficult to find detailed demo, you can not always get started. Also, because I'm learning to understand asp.net core, there is just something login validation, and wait for me to explore it, in order to get started.
1: New asp.net core project, changed the authentication of individual users accounts
2: Create a database AspNetIdentity, and then open the appsettings.json file, modify DefaultConnection connection node address for your database
"DefaultConnection": "Server=.;Database=AspNetIdentity;User=xxx;Password=xxxxxx"
3: Open the Tools> NuGet Package Manager> Package Manager Console, enter the Update-Database, build tables work is completed.
4: run the program, registering an account, login.
The whole process is very simple, a few steps can get. But what the operating mechanism of the login authentication system is it?