Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic page location authorization security?

Status
Not open for further replies.

beefeater267

Programmer
Apr 6, 2005
79
Hey,

My client wants to implement some sort of dynamic location role-based security rule for a web app. Normally, in my web.config, I define the location authorization rules such as:

<location path="WebForm.aspx">
<system.web>
<authorization><allow roles="Employee" /></authorization>
</system.web>
</location>

However, he wants to build an admin page that will keep track of pages and role access in a database.

How can you implement this sort of 'dynmaic page authorization'? Obviously, I can't define the rules in the web.config anymore.

Anybody have any ideas? Is it possible to add these rules at runtime?
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top