Re: How to determine authorized roles for a page?
- From: Dominick Baier <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 29 May 2007 10:48:19 +0000 (UTC)
you can do do that using the <authorization> element in web.config - or imperatively usign Page.User.IsInRole to grant/deny access to a page.
-----
Dominick Baier (http://www.leastprivilege.com)
Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)
I've been combing through Google trying to find the answer but not
luck.
I'm using Forms authentication. Determining what Roles the current
user is in was the easy part. But how does one determine what Roles
are permitted to use a particular ASPX page? (.NET 2.0, VS05)
.
- Follow-Ups:
- Re: How to determine authorized roles for a page?
- From: MyndPhlyp
- Re: How to determine authorized roles for a page?
- From: Alexey Smirnov
- Re: How to determine authorized roles for a page?
- References:
- How to determine authorized roles for a page?
- From: MyndPhlyp
- How to determine authorized roles for a page?
- Prev by Date: Re: Security Problems
- Next by Date: Re: How to determine authorized roles for a page?
- Previous by thread: How to determine authorized roles for a page?
- Next by thread: Re: How to determine authorized roles for a page?
- Index(es):
Relevant Pages
|
|