CHAPTER 14

image

Applying ASP.NET Identity

In this chapter, I show you how to apply ASP.NET Identity to authenticate and authorize the user accounts created in the previous chapter. I explain how the ASP.NET platform provides a foundation for authenticating requests and how ASP.NET Identity fits into that foundation to authenticate users and enforce authorization through roles. Table 14-1 summarizes this chapter.

Table 14-1. Chapter Summary

Problem

Solution

Listing

Prepare an application for user authentication.

Apply the Authorize attribute to restrict access to action methods and define a controller to which users will be redirected to provide ...

Get Pro ASP.NET MVC 5 Platform 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.