Unfortunately, the authentication mode of web.config does not support Basic authentication.
Forms | 3 | Specifies ASP.NET Forms-based authentication as the authentication mode. |
---|---|---|
None | 0 | Specifies no authentication. |
Passport | 2 | Specifies Microsoft Passport as the authentication mode. |
Windows | 1 | Specifies Windows as the authentication mode. This mode applies when using the Internet Information Services (IIS) authentication methods Basic, Digest, Integrated Windows (NTLM/Kerberos), or certificates. |