39 Applying ASP.NET Core Identity

This chapter covers

  • Authenticating users with ASP.NET Core Identity
  • Implementing and enforcing an authorization policy
  • Using bearer tokens instead of authentication cookies for web services or JavaScript clients

In this chapter, I explain how ASP.NET Core Identity is applied to authenticate users and authorize access to application features. I create the features required for users to establish their identity, explain how access to endpoints can be controlled, and demonstrate the security features that Blazor provides. I also show two different ways to authenticate web service clients. Table 39.1 provides a guide to the chapter.

Table 39.1 Chapter guide

Problem

Solution

Listing

Authenticating ...

Get Pro ASP.NET Core 7, Tenth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.