Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Sun, 11 May 2008 02:12:49 -0700 (PDT),    group: microsoft.public.dotnet.security        back       


how to implement a Role-Based winapp   
Hi ,

i'm developing a permission-based win application
there is one Permission for each possible Action in db & each Role has
some Permissions
and a custom authentication system is implemented for identifying
users and their roles

now,
1.i want to know what's advantages of using .Net Role-Based Security ?
i mean for controlling access of user to resources i could simply use
something like this :
** if (currentuser.HasPermission("RequiredPermission")) then do the
action **

2.i would check user permission in Business layer but i want all of my
biz methods contains a piece of code for controlling the access
is there any way to force all methods to have this piece of code or at
least a special code Attribute ?


Thanks in advance
date: Sun, 11 May 2008 02:12:49 -0700 (PDT)   author:   Khafancoder

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us