Windows Azure Basic Authentication

こ雲淡風輕ζ 提交于 2019-12-07 02:32:11

问题


I need to set up a testing website on Windows Azure, and typically to prevent random people 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.


回答1:


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/



来源:https://stackoverflow.com/questions/5772998/windows-azure-basic-authentication

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!