by bartczernicki.nospam@nospam.gmail.com (Bart Czernicki) via Silverlight Hack on 12/10/2008 4:27:00 PM
WCF includes a variety of security settings and design options. One of the security options the service architect has to worry about is transfer security. Transfer security deals with ensuring safe and secure communication between a client and service host.
Transfer security is very important for several reasons. Even the best authorization and authentication service design means nothing if the messages are not secure. Unsecure messages can lead to a variety of problems like:
WCF provides a variety of ways to secure the communication channel between the service and the client. Using these options properly can lead to highly secure communication with a very low probability of your messages being compromised. Conversely, even missing a small setting in the transfer security configuration can lead to messages that can have compromised privacy or integrity.
Generally speaking, WCF supports four different ways to secure your service transfer mechanism:
A developer who is not experienced with WCF might have a hard time comprehending these concepts initially. Therefore, I decided to show at a very high level how you can understand these transfer security modes visually.
Messages are unencrypted over a channel stack that is unsecure
Messages are encyrpted over a channel stack that is unsecure
Messages are unencyrpted over a channel stack that is secure (If the channel were unsecure, you could see the messages in clear text.)
Messages are encyrpted over an unsecure channel between the client and the service endpoint (1st hop). Notice the messages remain encrypted between the first service and second service (2nd hop).
Messages are unencyrpted over an secure channel between the client and the service endpoint (1st hop). Notice the messages DO NOT remain encrypted between the first service and second service (2nd hop).
Silverlight supports Transport level security natively out of the box with WCF configuration. Message security is possible inside Silverlight; however, it does require additional advanced programming beyond setting simple binding/behavior settings. However, message security is not 100% supported with all the different options like securing Messages with credentials.
In this article, I introduced the basics of WCF transfer security design scenarios. I decided to show the differences visually so that this concept is easier to understand for those new to WCF.
Original Post: WCF 101 - Understanding Transfer Security Visually
The content of the postings is owned by the respective author. Silverlight Feeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on Silverlight Feeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.