Getting started with WIF may be a bit confusing, so a good starting point at understanding the basics of WIF is the MSDN section A Guide to Claims-Based Identity and Access Control. In particular, the topic Claims-Based Single Sign-On for the Web explains the basic plumbing of WIF and roles of the config sections in the web.config-file.