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

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
主站蜘蛛池模板: 毕节市| 新闻| 嵊泗县| 礼泉县| 资中县| 高碑店市| 进贤县| 临漳县| 勐海县| 雅江县| 淮北市| 乐都县| 吕梁市| 河源市| 晋州市| 恩平市| 丰原市| 石河子市| 宜兴市| 三河市| 蓬安县| 章丘市| 白朗县| 广河县| 大庆市| 会宁县| 镇康县| 延津县| 高邮市| 保亭| 梁平县| 梧州市| 萨嘎县| 体育| 大悟县| 冀州市| 仙游县| 禹城市| 唐河县| 湖南省| 长沙县|