摘要:
为了防止跨站点的请求伪造,asp.net mvc引入了AntiForgeryToken这个东西。原理简单说来就是每个session开始的时候发布一个token,之后的每次请求都会带上这个token,然后服务器端对其进行校验。### 使用方法也很简单1. 在html表单里加入:`@Html.AntiF... 阅读全文
随笔分类 - ASP.NET
Authentication and Authorization in ASP.NET Web API
2015-06-16 20:40 by jdilt, 192 阅读, 收藏,
摘要:
### What are authentication and authorization* Authentication is knowing the identity of the user. For example, Alice logs in with her username and pa... 阅读全文
浙公网安备 33010602011771号