Re: How to determine authorized roles for a page?



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)



.



Relevant Pages

  • Re: ASP.NET 2.0 Authorization Roles
    ... Dominick Baier - DevelopMentor ... you have to use the domain\groupname format for windows groups. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ASP.NET 2.0 Authorization Roles
    ... Dominick Baier - DevelopMentor ... you have to use the domain\groupname format for windows groups. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ASP.NET 2.0 Authorization Roles
    ... Dominick Baier - DevelopMentor ... you have to use the domain\groupname format for windows groups. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ASP.NET 2.0 Authorization Roles
    ... Dominick Baier - DevelopMentor ... what am I missing here. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ASP.NET 2.0 Authorization Roles
    ... Dominick Baier - DevelopMentor ... what am I missing here. ...
    (microsoft.public.dotnet.framework.aspnet.security)