Improving Web Services Security: Scenarios and Implementation Guidance for WCF

patterns & practices Developer Center

patterns & practices Developer Center

J.D. Meier, Carlos Farre, Jason Taylor, Prashant Bansode, Steve Gregersen, Madhu Sundararajan, Rob Boucher

Microsoft Corporation

February 2009


This guide shows you how to make the most of Microsoft® Windows Communication Foundation (WCF). WCF is Microsoft's solution for developing applications based on a service-oriented architecture (SOA) methodology. The guide contains proven practices, end-to-end applications scenarios, guidelines, a Q&A, and task-based “how-to” articles.

Download the Guide

This guide is available in a downloadable PDF form on Codeplex.


Using end-to-end application scenarios, this guide shows you how to design and implement authentication and authorization in WCF. You will learn how to improve the security of your WCF services through prescriptive guidance including guidelines, a Q&A, practices at a glance, and step-by-step how to articles. The guide is the result of a collaborative effort between patterns & practices, WCF team members, and industry experts.

Table of Contents

Getting Started

Part I: Security Fundamentals for Web Services

This part gives you a quick overview of fundamental security concepts as they relate to services, service-oriented design, and Service-Oriented Architecture (SOA).

Part II: Fundamentals of WCF Security

This part gives you a firm foundation in key WCF security concepts, with special attention to authentication, authorization, and secure communication, as well as WCF binding configurations.

Part III: Intranet Application Scenarios

This part shows you a set of end-to-end intranet application scenarios that you can use to jump-start your application architecture designs, with a focus on authentication, authorization, and communication for your intranet from a WCF perspective.

Part IV: Internet Application Scenarios

This part shows you a set of end-to-end Internet application scenarios that you can use to jump-start your application architecture design for the Internet from a WCF perspective.




Questions and Answers

"How-to" Articles


WCF Security Resources

Feedback on the Guide

We have provided a short questionnaire on the Internet that should only take 5 to 10 minutes fill out. Copy these questions into an e-mail message and send the answers to

We are also particularly interested in feedback regarding the following:

  • Technical issues specific to recommendations
  • Usefulness and usability issues

Any input can be sent in e-mail to

Technical Support

Technical support for the Microsoft products and technologies referenced in this guide is provided by Microsoft Product Support Services (PSS). For product support information, please visit the Microsoft Product Support Web site.

Community Support

Microsoft MSDN newsgroups:



Windows Communication Foundation ("Indigo")

Architecture General

The Team Who Brought You This Guide

This guide was created by the following team members:

  • J.D. Meier
  • Carlos Farre
  • Jason Taylor
  • Prashant Bansode
  • Steve Gregersen
  • Madhu Sundararajan
  • Rob Boucher

Contributors and Reviewers

  • External Contributors / Reviewers: Andy Eunson; Anil John; Anu Rajendra; Brandon Bohling; Chaitanya Bijwe; Daniel Root; David P. Romig, Sr.; Dennis Rea; Kevin Lam; Michele Leroux Bustamante; Parameswaran Vaideeswaran; Rockford Lhotka; Rudolph Araujo; Santosh Bejugam
  • Microsoft Contributors / Reviewers: Alik Levin; Brandon Blazer; Brent Schmaltz; Curt Smith; David Bradley; Dmitri Ossipov; Jan Alexander; Jason Hogg; Jason Pang; John Steer; Marc Goodner; Mark Fussell; Martin Gudgin; Martin Petersen-Frey; Mike de Libero; Mohammad Al-Sabt; Nobuyuki Akama; Ralph Squillace; Richard Lewis; Rick Saling; Rohit Sharma; Scott Mason; Sidd Shenoy; Sidney Higa; Stuart Kwan; Suwat Chitphakdibodin; T.R. Vishwanath; Todd Kutzke; Todd West; Vijay Gajjala; Vittorio Bertocci; Wenlong Dong; Yann Christensen; Yavor Georgiev

Tell Us About Your Success

If this guide helps you, we would like to know. Tell us by writing a short summary of the problems you faced and how this guide helped you out. Submit your summary to

patterns & practices Developer Center