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

Summary

That was easy, wasn't it? We just set up the security for our APS.NET Web API that we will build upon in the upcoming chapters.

You learned about the security architecture of ASP.NET Web API that gave an overall view of what's under the hood. We then set up our browser client, from implementing the Web lookup service to calling the Web API with JavaScript and jQuery code.

You also learned about authentication and authorization techniques, which we will be covering in great detail later in the book. Moving on, you learned about HTTP Message Handlers, Principal, and the [Authorize] Attribute to control the authorization for the users.

Finally, you learned about custom authorization and authorization in a controller action to alter the behavior after processing the request based on the principal.

You learned a lot of stuff in this chapter. However, this is just the beginning. In the next chapter, you will implement a secured socket layer to the Web API. Let's get the ball rolling!

主站蜘蛛池模板: 奉节县| 金川县| 敖汉旗| 隆子县| 遵化市| 翼城县| 皮山县| 铜川市| 合江县| 靖边县| 会东县| 津市市| 罗山县| 尚志市| 平乡县| 东兰县| 黑山县| 永仁县| 江北区| 夏邑县| 甘德县| 徐闻县| 巴彦县| 江陵县| 砀山县| 嵩明县| 哈巴河县| 新化县| 务川| 安阳县| 营山县| 湟源县| 阳曲县| 安阳市| 洪湖市| 德江县| 泰和县| 太仓市| 霍山县| 盖州市| 太谷县|