Re: Dynamic page security authorization?

From: Pat (naijacoder_at_hotmail.com)
Date: 08/31/05


Date: Wed, 31 Aug 2005 16:03:45 +1000

Craig you could have a folder called Admin and under the Admin folder add
the neccesary (aspx)files you want to protect.
And later apply the neccesary Authorization.
 Hope that helps
Look at this article at:- http://dotnetbips.com/displayarticle.aspx?id=117
Patrick

"Craig Vedur" <CraigVedur@discussions.microsoft.com> wrote in message
news:729426F6-87F0-470D-932E-87908C317C4B@microsoft.com...
> 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



Relevant Pages

  • Re: jquery .js file = windows authentication dialogue?
    ... I have a asp.net 1.1 application set up with forms authentication ... I thought maybe it was because I was accessing the .js file in my admin ... in my admin folder) so I tried moving it outside my admin folder: ...
    (microsoft.public.dotnet.framework.aspnet)
  • jquery .js file = windows authentication dialogue?
    ... I have a asp.net 1.1 application set up with forms authentication protecting ... I thought maybe it was because I was accessing the .js file in my admin ... my admin folder) so I tried moving it outside my admin folder: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Subfolders and security, please help!!
    ... If the admin folder is protected by the web.config, ... It would not let you get to the login page ... >default.aspx folder in my Admin subfolder, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Subfolders and security, please help!!
    ... folder admin. ... default.aspx in the admin folder. ... default.aspx folder in my Admin subfolder, ... I'll likely have a couple more sub-folders off the main ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Darn..All Users.WINDOWS folder
    ... Marbles wrote: ... Admin Folder to become Admin.MyOldcomputername? ... Administrator account? ...
    (microsoft.public.windowsxp.security_admin)