Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Azure Basic Authentication

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.

like image 887
Will Charczuk Avatar asked Apr 24 '11 20:04

Will Charczuk


1 Answers

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/

like image 163
Stuart Avatar answered Sep 28 '22 09:09

Stuart