Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

2. Programming with Windows Identity Fou... > Designing claims-enabled WCF service...

Designing claims-enabled WCF services

The WIF SDK for .NET Framework 4.0 also provides Visual Studio 2010 templates for creating the claims-enabled WCF RP service and WCF STS. In this recipe, we will look at ways of delegating identity management to a claims-based WCF STS. In addition, we will also explore out of the box bindings in WCF to support claims-based identity and look at the federation protocols supported by WIF to assign an out-of-band token to a WCF RP.

How to do it...

To design the claims-enabled WCF services, perform the following steps:

  1. Create a Visual Studio 2010 C# WCF Service Application project, and name it as ClaimsEnabledWcfService.
    How to do it...
  2. Right-click on the project, and click on Add STS reference… to run the Federation Metadata Utility wizard, and select Create a new STS project in the current solution under the Security Token Service option. Complete the running of wizard. A new WCF STS website project is added to the solution:
    How to do it...
    • Notice that the Federation Utility wizard identifies that you are trying to create an STS for a WCF service, and it automatically picks the WCF STS template. The utility establishes trust with the WCF application and makes the necessary configuration changes.

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint