Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Basic Authentication on IIS Express

Tags:

I've searched for a while now but I can't seem to find the answer. There are ways of disabling/enabling anonymous and windows authentication. Does anyone know how to enable basic authentication on IIS Express (8.0) in Visual Studio 2013?

like image 241
Dawid O Avatar asked Sep 03 '14 11:09

Dawid O


People also ask

What is the default authentication method in IIS?

When you install and enable Windows authentication on IIS 7, the default protocol is Kerberos.


1 Answers

Update ApplicationHost.config

In the the ApplicationHost.config file, find the following nodes and update the values:

<sectionGroup name="authentication"&gt
   <basicAuthentication enabled="false" /> <!-- set to false -->
</sectionGroup&gt

<!-- ... -->

<authentication&gt
   <section name="basicAuthentication" overrideModeDefault="Allow" /> <!-- set to allow -->
</authentication&gt

Locate ApplicationHost.config

  • VS 2015 and above (per Joost's answer):

    sln_folder/.vs/applicationhost.config
    
  • VS 2013 and below:

    %UserProfile%\Documents\IISExpress\config\applicationhost.config
    

    As far as I know, there is no way to enable it for only one project.

like image 178
Dawid O Avatar answered Sep 28 '22 11:09

Dawid O