Windows Azure Basic Authentication
I need to set up a testing website on Windows Azure, and typically to prevent random 开发者_如何学Gopeople from looking at it I would have set up basic authentication with some sort of trivial password to filter people. Windows Azure, seemingly, does not have this option.
What are the alternatives? So far I am considering implementing another level of forms authentication but this is a lot of work and would need to be stripped out in the production version of the site.
The documentation on implementing Basic-Authentication in the web.config is also shockingly sparse.
I think you should be able to use the IIS7 demo BasicAuthenticationModule to achieve what you want - see full code and instructions in http://learn.iis.net/page.aspx/170/developing-a-module-using-net/
精彩评论