Suppose that you are building a fancy new website and want to show your progress to your client. You create a new website in the Windows Azure management portal and eploy your code. You also want to make sure that only trusted users can access the website. Basic authentication seems like the most logical solution, but you suddenly realize that you cannot use basic authentication in Windows Azure websites in the same way you used it on your on-premises web server. In this article I will show you how to build your own HTTP managed module to achieve the same goal in Windows Azure websites.