Book Image

Microsoft Windows Identity Foundation Cookbook

By : Sandeep Chanda
Book Image

Microsoft Windows Identity Foundation Cookbook

By: Sandeep Chanda

Overview of this book

<p>Implementing security as a cross-cutting concern has several challenges. Consequently, modern software development practices and Service Oriented Architectures are alluding to the idea of claims-based Identity for access control. Microsoft&rsquo;s Identity and Access Control paradigm leverages industry standard open specifications and provides tools, runtime and platform support for facilitating the development of claims-enabled applications. <br /><br />Microsoft Windows Identity Foundation Cookbook explores real world scenarios on building claims-enabled .NET applications using Microsoft Windows Identity Foundation (WIF), Active Directory Federation Services 2.0 (AD FS 2.0) and Windows Azure Access Control Services (ACS).<br /><br />This book covers all aspects of several real world challenges that professional developers face while enabling support for claims-based identity across interoperable platforms and building claims-enabled applications. The book then goes on to explore AD FS 2.0 and provides step-by-step details on how claims support is enabled in Microsoft&rsquo;s server technologies.<br /><br />The book starts by introducing you to the world of claims-based identity in .NET Framework 4.0. It then moves on to showcase the capabilities of the runtime and the associated SDK including the steps to perform identity delegation in ASP.NET MVC 3 applications, create WCF security token services, extend the runtime to provide support for SAML 2.0 specifications and use AppFabric as a trusted source for implementing access control. Further, the book explores AD FS 2.0 and features recipes showcasing steps to configure claims in Microsoft&rsquo;s server technologies. It also features a chapter on some of the newer capabilities of the runtime including providing support for claims in Windows Workflow Foundation and Windows 8 Metro applications.<br /><br />Windows Identity Foundation Cookbook provides a mix of recipes from basic to advanced to enable professional developers to implement claims-based identity in enterprise-wide scalable and interoperable applications.</p>
Table of Contents (15 chapters)
Microsoft Windows Identity Foundation Cookbook
Credits
Foreword
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface

Implementing a federation scenario with WIF and AD FS 2.0


Now that we have successfully configured a federation server, we will explore a federation scenario where the claims issued by Federation Service are used by a claims-enabled (using the WIF runtime and the SDK) ASP.NET Web Application. Web Server (IIS) where ASP.NET Web Application is hosted will establish a trust relationship with the federation server and will allow access to the users who present the claims issued by Federation Service.

Getting ready

In this recipe, we will use a claims-enabled ASP.NET Web Application to verify the claims issued by Federation Service. You should have the WIF SDK installed along with Microsoft Visual Studio 2010 to create a claims-enabled ASP.NET Web Application.

How to do it...

To implement the federation scenario, perform the following steps:

  1. 1. First, we will create a claims-enabled ASP.NET Web Application. To do this, create a new ASP.NET Web Application project from the Visual Studio 2010 C# templates...