Creating an authentication service with ASP.NET Core Identity
Before the internet era, many applications relied on simple offline authentication mechanisms, where a username and password hash were stored locally. Although some applications still require offline login, most now handle authentication on the server side, which manages users and their permissions.
As noted in the chapter introduction, while there are cloud-based solutions with premium features, we will build our own authentication service using ASP.NET Core Identity. This approach will provide a thorough understanding of authentication and authorization mechanisms and allow us to tailor them to our needs.
In this recipe, we will set up a basic authentication service that enables user registration and password-based login through a browser. In the next recipe, we will develop a client .NET MAUI application that connects to this service.
Getting ready
As mentioned in the Technical requirements section of this...