摘要: 授权验证,比如登陆验证 1、自定义属性继承AuthorizeAttribute 2、重写OnAuthorization方法 3、通过AllowAnonymousAttribute特性处理无需授权的Action或者Controller 实现代码: public class MyAuthorizeAtt 阅读全文
posted @ 2020-02-25 16:03 我要找到我的全世界 阅读(747) 评论(0) 推荐(1)