September 2016
Intermediate to advanced
1018 pages
27h 54m
English
© Adam Freeman 2016
ADAM FREEMAN, Pro ASP.NET Core MVC , 10.1007/978-1-4842-0397-2_29
ADAM FREEMAN1
(1)MILTON KEYNES MK6 3PA, 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.
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 which ... |
Read now
Unlock full access