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

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!

主站蜘蛛池模板: 淅川县| 乐清市| 五大连池市| 大港区| 习水县| 桃江县| 陆川县| 鹿邑县| 榆林市| 全南县| 神池县| 长武县| 蒙城县| 澄城县| 杭锦后旗| 灵川县| 墨玉县| 普兰店市| 崇州市| 石河子市| 正安县| 灵台县| 通化市| 曲沃县| 庄河市| 湄潭县| 云浮市| 鱼台县| 疏勒县| 深泽县| 成安县| 皮山县| 江孜县| 察雅县| 富平县| 紫金县| 剑阁县| 岳池县| 安徽省| 扎兰屯市| 宜兰县|