Identity
This topic is important to me because I want to be able to create an experience in my web applications that apply authentication.
References
Intro to Identity
Identity Demystified
Intro to Identity Notes
Its an API that supports UI login functionality
Manages users,passwords, profile data, roles, claims, tokens, email confirmation, and more!
Its configured using a SQL server DB to store all the data.
This is how we add authentication!
Step by Step
- Add Identity to Your Project
- Install the Microsoft.AspNetCore.Identity NuGet package in your ASP.NET Core project.
- Configure Identity in Startup.cs
- In the ConfigureServices method, configure Identity services, including user and role settings.
- Database Setup
- Identity data is stored in a database. Configure a database context and migrations to create the necessary tables.
- User Registration and Login
- Use the Identity APIs to handle user registration and authentication.
- Authorization
- Implement role-based or claims-based authorization using the [Authorize] attribute.
Identity Demystified
Source
This site breaks down whats going on in the breakdown for Identity.
Things I want to know more about
I want to understand how complicated this is to add to my own projects, I want to be good at doing it.
I want to learn more about the different libraries that can do authentication, if there is any.