Hi, I am using Windows authentication on an intranet application - the web.config looks something like this:
What I would like to do is have the "allow users" be dynamic - in other words, have the list of users be read from an XML file, from a database, or something like that. Is there a way to do this? Can I programmatically change the web.config at run time?
Thanks!
James
Code:
<authentication mode="Windows">
</authentication>
<authorization>
<allow users="domain\user, BUILTIN\Administrator, BUILTIN\Administrators"/>
<deny users="*"/>
</authorization>
What I would like to do is have the "allow users" be dynamic - in other words, have the list of users be read from an XML file, from a database, or something like that. Is there a way to do this? Can I programmatically change the web.config at run time?
Thanks!
James