Saturday, March 31, 2012

setting IIS authentication methods in web.config

Does anyone know if it is possible to set IIS authentication methods
(e.g. anonymous access, basic authentication, IWA, etc) in the
web.config file?

For example, I want to remove Anonymous Access for an entire directory
in my ASP .NET project and only use Integrated Windows Authentication.

Is there some way I can configure that in the web.config file or do I
need my Infrastructure guys to make that change in IIS?

JeremyYou can't change the IIS settings, but you can set the ASP.Net forms
authentication settings for specific directories and such to use Windows
permissions instead. Check out the forms authentication portion of the .net
framework help docs.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

<jeremy.stitt@.gmail.com> wrote in message
news:1118257534.495821.291310@.g47g2000cwa.googlegr oups.com...
> Does anyone know if it is possible to set IIS authentication methods
> (e.g. anonymous access, basic authentication, IWA, etc) in the
> web.config file?
> For example, I want to remove Anonymous Access for an entire directory
> in my ASP .NET project and only use Integrated Windows Authentication.
> Is there some way I can configure that in the web.config file or do I
> need my Infrastructure guys to make that change in IIS?
> Jeremy

0 comments:

Post a Comment