23 Authentication: Adding users to your application with Identity

 

This chapter covers

  • Seeing how authentication works in web apps in ASP.NET Core
  • Creating a project using the ASP.NET Core Identity system
  • Adding user functionality to an existing web app
  • Customizing the default ASP.NET Core Identity UI

One of the selling points of a web framework like ASP.NET Core is the ability to provide a dynamic app, customized to individual users. Many apps have the concept of an “account” with the service, which you can “sign in” to and get a different experience.

Depending on the service, an account gives you varying things. On some apps you may have to sign in to get access to additional features, and on others you might see suggested articles. On an e-commerce app, you’d be able to place orders and view your past orders; on Stack Overflow you can post questions and answers; on a news site you might get a customized experience based on previous articles you’ve viewed.

When you think about adding users to your application, you typically have two aspects to consider:

  • Authentication—The process of creating users and letting them log in to your app
  • Authorization—Customizing the experience and controlling what users can do, based on the current logged-in user

23.1 Introducing authentication and authorization

23.1.1 Understanding users and claims in ASP.NET Core

23.1.2 Authentication in ASP.NET Core: Services and middleware

23.2 What is ASP.NET Core Identity?

23.3 Creating a project that uses ASP.NET Core Identity

23.3.1 Creating the project from a template

23.3.2 Exploring the template in Solution Explorer

23.3.3 The ASP.NET Core Identity data model

23.3.4 Interacting with ASP.NET Core Identity

23.4 Adding ASP.NET Core Identity to an existing project

23.4.1 Configuring the ASP.NET Core Identity services

sitemap