ASP.Net Roles: Page-Level Security Question

Posted by jlrolin on Stack Overflow See other posts from Stack Overflow or by jlrolin
Published on 2010-05-10T16:50:13Z Indexed on 2010/05/10 16:54 UTC
Read the original article Hit count: 265

Filed under:
|

We're currently in the process of re-creating a brand new security model that dwarfs our existing process. Right now, we plan on grabbing a user's roles during the login process and then using a Base Page class to check if the user has the role of the corresponding page the user is navigating to.

We can limit the menu's options by the user's roles as well, but we have had problems with users navigating to pages in our system by typing them in or having old bookmarks. Obviously, we need some sort of page level access.

A simple function in our Base Page class that checks the role in the Arraylist against the page's assigned role would work, but I was wondering if there was any built-in functionality to support this or a cleaner solution possibly.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about web-security