官术网_书友最值得收藏!

Chapter 1. Setting up a Browser Client

If you are reading this book, it is because you understand the importance of securing your web API. ASP.NET Web API is a framework that helps in building HTTP services that can be utilized by a wide range of clients. So it is very important to secure your Web API.

ASP.NET Web API 1.0 doesn't have any security features so the security is provided by the host such as Internet Information Server. In ASP.NET Web API 2, security features such as Katana were introduced. To secure Web API, let's understand various techniques that are involved and choose the right approach.

In this chapter, we will cover the following topics:

  • ASP.NET Web API security architecture
  • Setting up your browser client
  • Authentication and authorization
  • Implementing authentication in HTTP message handlers
  • Setting the principal
  • Using the [Authorize] Attribute
  • Custom authorization filters
  • Authorization inside a controller action
主站蜘蛛池模板: 武城县| 原阳县| 库伦旗| 偏关县| 康定县| 鹤山市| 永宁县| 紫金县| 金山区| 青河县| 湘乡市| 夏津县| 元谋县| 民乐县| 高淳县| 贞丰县| 区。| 娄烦县| 新乡市| 营口市| 宝应县| 临汾市| 额尔古纳市| 永寿县| 湟中县| 美姑县| 清水河县| 武陟县| 肥乡县| 互助| 上思县| 永新县| 司法| 南汇区| 辽宁省| 望都县| 乐都县| 宁晋县| 和田市| 嘉定区| 昌江|