Gwt 安全小部件级别
我可能会问一个新手问题,但我想知道使用角色设置 Gwt 面板中某些字段的可见性是否存在安全问题(Smartgwt 但不会改变问题)。 我对某些角色限制的主要服务进行了安全检查服务器端,此外,我仅实例化与授予访问权限的用户相对应的面板,但在某些情况下,我需要减少某些角色的某些视图上可见的数据。 如果存在安全问题,此类请求的最佳解决方法是什么?
I'm probably asking a newbee question but i'm wondering if there is a security issue to use roles to set the visibility of some field in a a Gwt panel (Smartgwt but doesn't change the problem).
I have securitty checking server side on the main services restricted for some roles and besides I instaniate only the panels corresponding to the user granted access but in some case I need to reduce the data visible on some views for some roles.
If there is a security issue what will be the best workaround for such a request?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不能指望隐藏通过用户界面发送到客户端的数据,因为用户始终可以通过您未创建的其他界面访问数据。不要使用 GWT 来降低数据可见性 - 始终在服务器上执行此操作。您只控制服务器,即使看起来您控制客户端。
You cannot expect to hide data you send to a client with the user interface, since the user can always access the data via some other interface that you didn't create. Don't use GWT to reduce data visibility - always do that on the server. You only control the server, even if it seems like you control the client.