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

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
主站蜘蛛池模板: 青川县| 东源县| 鄂州市| 凉城县| 无锡市| 新乡县| 从化市| 沾益县| 邵阳县| 西贡区| 孝感市| 浦东新区| 项城市| 祁阳县| 嫩江县| 三穗县| 贺州市| 安庆市| 彩票| 河源市| 元氏县| 德格县| 上饶市| 昌图县| 龙陵县| 淮北市| 福鼎市| 贺州市| 石泉县| 武川县| 武义县| 南丹县| 定日县| 观塘区| 西充县| 略阳县| 棋牌| 台安县| 宿迁市| 肃宁县| 临武县|