IIS 7 and Above
default web site only accepts Basic authentication
Last post May 12, 2008 04:36 AM by singhhome
May 01, 2008 06:41 PM|singhhome|LINK
I did something on my web site and now it allows only Basic authentication(i am using .net client code to access web services) for application under my default web site.
Earlier Windows integrated authentication was working fine. I even tried removing "Basic authentication" option from add remove windows feature. but still site works only with Basic authentication(user name and password in clear text)
May 01, 2008 08:53 PM|ma_khan|LINK
What does the web.config file say ???
May 03, 2008 03:24 PM|singhhome|LINK
web.config file has windows integrated authentication
May 03, 2008 07:34 PM|ma_khan|LINK
need more info on this matter... what happened when you say you did something???
Also, is there no basic authentication in web.config??
May 05, 2008 02:50 PM|singhhome|LINK
what other info you need?
I said "i did something", because earlier it used to work fine with Windows Integrated authentication. It is a test machine and i do lot of R&D stuff on it. I don't know exactly which R&D turned off windows integrated authentication.
It is IIS 7.0, i have removed Basic authentication from Windows Add/Remove feature. basic authentication doesn't show up as an option in IIS web application settings. But still application works only with Basic authentication.
web config has "WIndows" as authentication mode.
How can i specify Basic Authentication in web.config file??
May 08, 2008 11:09 AM|Zhao Ji Ma - MSFT|LINK
Please also make sure IE support Integrated Windows Authentication.
1. In Internet Explorer, on the Tools menu click Internet Options.
2. Click the Advanced tab, in the Security group select the Enable Integrated Windows Authentication (requires restart) check box, and then click OK.
May 12, 2008 04:36 AM|singhhome|LINK
I have tried it accessing from .NET client.
DefaultCredentials doesn't work it give 401. It works only when i use NetworkCredential(username, password, domain).
Also while trying to add a web reference from VS, it ask for username and password.