Skip to Content
Pro ASP.NET Core MVC 2
book

Pro ASP.NET Core MVC 2

by Adam Freeman
October 2017
Intermediate to advanced content levelIntermediate to advanced
1024 pages
27h 39m
English
Apress
Content preview from Pro ASP.NET Core MVC 2

© Adam Freeman 2017

Adam Freeman, Pro ASP.NET Core MVC 2, https://doi.org/10.1007/978-1-4842-3150-0_29

29. Applying ASP.NET Core Identity

Adam Freeman

(1)London, UK

In this chapter, I show you how to apply ASP.NET Core Identity to authenticate and authorize the user accounts created in the previous chapter. Table 29-1 summarizes this chapter.

Table 29-1. Chapter Summary

Problem

Solution

Listing

Restrict access to an action method

Apply the Authorize attribute

1

Authenticate users

Create an Account controller that receives user credentials and check them using the UserManager class

2–5

Create and manage roles

Use the RoleManager class

6–10

Authorize access to an action method using roles

Add user accounts to roles and use the Authorize attribute to specify ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro Entity Framework Core 2 for ASP.NET Core MVC

Pro Entity Framework Core 2 for ASP.NET Core MVC

Adam Freeman

Publisher Resources

ISBN: 9781484231500Purchase bookPublisher Website