开发者

ASP.NET Development Server with Basic Authentication

Anyone aware of how to get the ASP.NET Dev Server to challenge for basic au开发者_StackOverflowthentication credentials instead of assuming my current login?


If using Cassini then according to paragraph at bottom of this link - Limitations of the Cassini Web Server, you cant.

If using IIS, then update IIS authentication.

In IIS,

  • in the virtual directory of your site right click on your virtual directory,
  • select the Directory Security tab
  • select Edit button next to Anonymous access and authentication control
  • uncheck allow anonymous and integrated windows authentication
  • check basic authentication


Not an answer to your question, per se, but consider configuring your web project's properties to "Don't open a page. Wait for a request from an external application", and then hit your server with a browser that's been launched with alternative credentials.


Do you have Integrated Windows authentication checked off under Directory Security in IIS, instead of (or in addition to) Basic?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜