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

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
主站蜘蛛池模板: 荃湾区| 金华市| 仁寿县| 泽普县| 甘谷县| 航空| 和硕县| 姚安县| 连平县| 平湖市| 长春市| 北流市| 磐石市| 突泉县| 比如县| 禹州市| 镶黄旗| 美姑县| 调兵山市| 西乌| 郸城县| 聂拉木县| 扬州市| 那坡县| 阿拉尔市| 肇源县| 德兴市| 巩留县| 平山县| 临泉县| 玉山县| 祁东县| 西林县| 城固县| 健康| 巴彦县| 内黄县| 始兴县| 轮台县| 酒泉市| 东台市|