将桌面权限设置转换为基于Web的应用程序 [英] Converting desktop permission settings to a web based application

查看:86
本文介绍了将桌面权限设置转换为基于Web的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将vb.net 2005桌面应用程序转换为基于Web的应用程序。用户可以使用远程桌面连接登录服务器。

任何可以登录服务器的人都可以启动GUI,但是当用户想要做的不仅仅是读取信息时,GUI会调用一个称为存储过程的存储过程GetPermissions是否被允许做他们想做的事。程序是这样的。



选择is_member(''part1'')作为part1,

is_member(''part2'' )作为第2部分,

is_member(''part3'')作为第3部分,

is_member(''part4'')作为第4部分,...



一些用户有权执行part1,其他人则有3人有权执行所有部件。



如何最好地复制这是在基于Web的GUI(带有vb的asp.net 3.5)中设置的吗?

一个很大的区别是该链接只适用于有权使用上述四个部分中的至少一个的人以上。

如果我使用登录控件我很担心我必须以某种方式手动将ASP.net角色与db角色同步。

I''m converting a vb.net 2005 desktop application to being web based. The user would log into a server using remote desktop connection.
Anyone who could log into the server could start the GUI, but when a user wanted to do more than read information the GUI called a stored procedure called GetPermissions to see if they were allowed to do what they wanted. The procedure was something like this.

select is_member(''part1'') as part1,
is_member(''part2'') as part2,
is_member(''part3'') as part3,
is_member(''part4'') as part4,...

some users have permission to execute part1, others part 3 others have permission to execute all parts.

How best to replicate this set up in a web based GUI (asp.net 3.5 with vb)?
One big difference is that the link should only work for people who have permission to use at least one of the four parts mentioned above.
If I use a login control I''m worried I would have to somehow manually synchronise the ASP.net roles with the db roles.

推荐答案

没有任何变化。因为你的ASP.net应用程序将有服务器端代码,所以没有什么真正改变。通过身份验证和了解用户是什么,您当前的应用程序知道哪个用户具有哪个角色?这很容易被移植到像asp.net会员和角色提供者这样的东西吗?



开发自定义ASP.NET成员资格和角色提供程序,从web.config中的自定义部分读取用户 [ ^ ]



如果您要使用JS重型UI,那么您的服务器端/业务层应该可以通过服务调用访问。然后可以查询以确定某些用户是否拥有权限。
Nothing changes. Because your ASP.net application will have server side code, nothing really changes. What by way of authentication and knowing what the user is does your current application know what user has which role?? Surly this can easily be ported to something like the asp.net membership and roles provider?

Developing custom ASP.NET Membership and Role providers reading users from custom section in the web.config[^]

If you were going the way of a JS heavy UI then your server side / business layer should be accessible via a service call. This can then be queried to identify if certain users have rights.


角色信息位于db角色中。我如何将其移植到asp.net会员和角色提供者之类的东西?

目前我已经要求dba每天使用这些信息创建一个表格。 />
这是因为只有ID db_owner才能检索到所有必要的信息。
The role information is in db roles. How do I port this over to something like the asp.net membership and roles provider?
At the moment I''ve asked the dba to create a table on a daily basis with this information.
This is because only the ID db_owner would be able to retrieve all the necessary information.


这篇关于将桌面权限设置转换为基于Web的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆