Monthly Archives: January 2008

HTTP Basic Authentication against Non-Windows Accounts in IIS/ASP.NET (Part 3 – Adding WCF Support)

Taking this post as a starting point, we now have a working HTTP module that implements HTTP Basic Authentication against a membership provider. This is fine for ASP.NET applications and content, but to integrate a WCF service, there is some … Continue reading

Posted in ASP.NET, WCF | Leave a comment

HTTP Basic Authentication against Non-Windows Accounts in IIS/ASP.NET (Part 3 – Setting up IIS6/ASP.NET)

In the previous post I explained how the authentication module works. Now which steps are required to get the demo app included in the download to work? IIS Create a vdir in IIS that points to the sample site. Mark … Continue reading

Posted in ASP.NET, WCF | Leave a comment

HTTP Basic Authentication against Non-Windows Accounts in IIS/ASP.NET (Part 2 – The HTTP Module)

An HTTP module is one of the main extensibility points in ASP.NET/IIS7. Modules subscribe to notifications of certain stages in the HTTP request/response processing. Inside of the event handlers you can then inject your custom code and logic. To allow … Continue reading

Posted in ASP.NET, WCF | Leave a comment

HTTP Basic Authentication against Non-Windows Accounts in IIS/ASP.NET (Part 1 – Basic Authentication)

The first step in implementing an authentication module for IIS/ASP.NET is to understand the authentication protocol (doh ;) It turns out the Basic Authentication is quite simple. Whenever the server wants to start the authentication handshake, he sends a 401 … Continue reading

Posted in ASP.NET, WCF | Leave a comment

HTTP Basic Authentication against Non-Windows Accounts in IIS/ASP.NET (Part 0 – Intro)

Imagine this (quite common) scenario: You have some web content/resources (e.g. static files, aspx pages, asmx or WCF services) in IIS that you want to protect using HTTP Basic Authentication. The problem is, that when you enable Basic Authentication in … Continue reading

Posted in ASP.NET, WCF | Leave a comment

System.AddIn Pipeline Builder

I recently spent quite some time in the System.AddIn namespace. I really like the new extensibility model and once you take the initial hurdle of understanding the infrastructure (or pipepline in MAF-speak) it is a really sensible model. To get … Continue reading

Posted in Uncategorized | Leave a comment

System.DirectoryServices.AccountManagement

Looking through some of the new 3.5 stuff I stumbled over a new assembly named “System.DirectoryServices.AccountManagement” – that caught my attention. The whole namespace reminds a little bit of ADSI – an API tailored to create user, group and machine … Continue reading

Posted in Uncategorized | Leave a comment

Configuration Section Designer

Writing configuration sections is tedious – a perfect candidate for code-gen. Try this. Very nice.

Posted in Uncategorized | Leave a comment

Walkthrough: Setting up a self hosted WCF Service with SSL

This is really just a compilation of already known bits of information. But since I had to do this recently and was struggling to get these pieces together, I thought I’ll document all the steps here. Scenario:WCF service that uses … Continue reading

Posted in WCF | Leave a comment

Some new IIS7 Resources

List of registry keys affecting IIS7 behavior (Kanwaljeet Singla) Enhance Your Apps with the Integrated ASP.NET Pipeline (Mike Voldarsky) Breaking Changes for ASP.NET 2.0 applications running in Integrated mode on IIS 7.0 (Mike Volodarsky) Internet Information Services (IIS) 7.0 TechRef … Continue reading

Posted in ASP.NET | Leave a comment