aspnet-mvc5中的身份验证和授权筛选器之间的区别 [英] Difference between authentication and authorization filters in aspnet-mvc5
本文介绍了aspnet-mvc5中的身份验证和授权筛选器之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么身份验证过滤器包含在mvc 5中?mvc 5中的身份验证过滤器和授权过滤器之间的主要区别是什么?
Why authentication filter is included in mvc 5? What is the major difference between authentication filter and authorization filter in mvc 5?
推荐答案
I found the following blog post: ASP.NET MVC 5 Authentication Filters
基本上是关注点分离.
身份验证:找出WHO发出的请求.
Authentication: find out WHO issued a request.
授权:找出是否允许已知用户执行特定操作.
Authorization: find out whether a known user is allowed to perform a certain action.
这篇关于aspnet-mvc5中的身份验证和授权筛选器之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文