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

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
主站蜘蛛池模板: 六盘水市| 新泰市| 建德市| 海门市| 景宁| 自贡市| 永川市| 汝南县| 五原县| 余庆县| 胶南市| 汶上县| 泾阳县| 安化县| 瑞丽市| 通辽市| 沂南县| 庆阳市| 盘山县| 安乡县| 且末县| 华安县| 永福县| 策勒县| 铜鼓县| 安阳市| 桂林市| 南和县| 永安市| 阿尔山市| 云霄县| 达孜县| 六枝特区| 盐池县| 庐江县| 嵊州市| 嘉定区| 昌邑市| 邵武市| 玉田县| 仁布县|