Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > coding Access Rules

Reply
Thread Tools

coding Access Rules

 
 
GaryDean
Guest
Posts: n/a
 
      07-01-2007
I've built a basic authentication system using all of the login controls and
a custom screen to manage roles using the Membership, MembershipUser, and
Roles classes. So now I can manage users and roles from the website. But,
what classes are available to manage access rules (permissions)? do we have
to write code to manipulate the individual web.configs?

--
Regards,
Gary Blakely


 
Reply With Quote
 
 
 
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      07-02-2007
Hi Gary,

From your description, you're building a custom web management application
which can help user configure the membership user & role info of the
application. Currently, you're wondering how to add the "access
rule"(authorization) management into the system, correct?

As for the "access rules", it is actually persisted as <authorization>
setting in application's web.config file, so if you want to provide service
to programmatically manage this setting, you need to also programmatically
change the web.config file. In .net framework 2.0, you can utilize the
configuration API to do this. And the "<authorization> section is
associated with the System.Web.Configuratrion.AuthorizationSection class.

#AuthorizationSection Class
http://msdn2.microsoft.com/en-us/lib...ion.authorizat
ionsection.aspx

You can use code to open the configuration object of the specified path in
your application and then locate the "AuthorizationSection" and manage
rules in it.

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.





 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check Coding Rules vytaliss VHDL 0 07-01-2011 10:35 AM
Coding rules? Peter VHDL 6 05-16-2008 02:39 PM
C & C++ Coding Standards: Objective versus Subjective Rules pat@abxsoft.com C Programming 0 12-05-2006 05:41 PM
rules for Cisco PIX 525 firewall rules KAS Cisco 2 10-02-2005 07:12 PM
C++ Coding Standards : 101 Rules, Guidelines, and Best Practices Stuart Gerchick C++ 27 11-12-2004 04:05 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57