[英]Authorization in Telerik's MVC extensions
How's authorization supported in Telerik's MVC extensions ? Telerik的MVC扩展如何支持授权?
I am particularly interested in two cases: 我对以下两种情况特别感兴趣:
ASP.NET MVC authorization is supported at controller level through the AuthorizeAttribute
. 通过AuthorizeAttribute
在控制器级别支持ASP.NET MVC AuthorizeAttribute
。
The tabstrip should perform security trimming and not show tabs which navigate to action methods which the current user does not have access to. 该选项卡应该执行安全修整,并且不显示导航到当前用户无权访问的操作方法的选项卡。
The grid won't hide the editing/deleting/inserting commands. 网格不会隐藏编辑/删除/插入命令。 If unauthorized user tries to perform the operation he would end up with a blank screen (if using server binding) or raise the OnError client side event (for ajax binding scenarios). 如果未经授权的用户尝试执行该操作,则最终将出现黑屏(如果使用服务器绑定)或引发OnError客户端事件(对于Ajax绑定方案)。 The error code would be 401 - unauthorized. 错误代码将为401-未经授权。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.