开发者

Silverlight 4.0 App with role-based access control on field level

I'm new here. I am currently working on a Silverlight application (SL4) with Ria Services. I use the MVVM pattern. My question is, has anyone any experience or idea, whether it is possible to implement a role-based access control at the field level. Both sides should it be dynamic. Permissions of a role should be adapted for the f开发者_Python百科ields.


Yes definitely.
Read this article, at section 'Defining Access and profile properties'.


I support field level access in my application. fine-grained permissions; PrincipalPermission - roles seperate from permissions;

I had to create my own code access security attribute and a view to assign permissions to roles.

I discovered that permissions are hierarchical in nature.


CREATE TABLE [dbo].[Permission](
    [id] [uniqueidentifier] NOT NULL,
    [parent_id] [uniqueidentifier] NULL,
    [applicationmodule_id] [uniqueidentifier] NULL,
    [action] [nvarchar](255) NOT NULL,

SecurityModuleAccess -> UpdateUser -> ResetPassword

Something that may help in assigning permissions to roles #TreeListView http://demos.telerik.com/silverlight/#TreeListView/FirstLook

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜