This document is a step by step guide for enabling your web application to act as an identity provider.
ComponentSpace SAML for ASP.NET Step by Step Guide - Identity Provider