Skip to Main Content
ASP.NET Core in Action, Second Edition
book

ASP.NET Core in Action, Second Edition

by Andrew Lock
May 2021
Intermediate to advanced content levelIntermediate to advanced
832 pages
25h 39m
English
Manning Publications
Content preview from ASP.NET Core in Action, Second Edition

15 Authorization: Securing your application

This chapter covers

  • Using authorization to control who can use your app
  • Using claims-based authorization with policies
  • Creating custom policies to handle complex requirements
  • Authorizing a request depending upon the resource being accessed
  • Hiding elements from a Razor template that the user is unauthorized to access

In chapter 14 I showed you how to add users to an ASP.NET Core application by adding authentication. With authentication, users can register and log in to your app using an email address and password. Whenever you add authentication to an app, you inevitably find you want to be able to restrict what some users can do. The process of determining whether a user can perform a given action ...

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

ASP.NET Core in Action, Third Edition

ASP.NET Core in Action, Third Edition

Andrew Lock

Publisher Resources

ISBN: 9781617298301Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link