Dec 15 2010
WCF Claims, STS and Federation – Layman’s View
Configuring your Federation
I’m here to explain WCF claims in federated services using STS (security token service) from a layman’s perspective. I’ve started with the set of configuration you have to put in place on web.config under system.serviceModel to make your service in federated way. Instead of very boring textual explanation, I’m explaining in comic way.
This is to be declared inside <binding> -> <security> element of system.serviceModel section of web.config.
<wsFederationHttpBinding> <binding name="wsFed"> <security mode="Message"> <message issuedTokenType="<strong>http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1</strong>" negotiateServiceCredential="false"> <issuer address="<strong>http://udoozSTS/TokenService.svc</strong>" binding ="wsHttpBinding" bindingConfiguration="udoozSTSBinding" > </issuer> </message> </security> </binding> </wsFederationHttpBinding>
The <issuer> is the place you have to tell where STS is hosted over which binding with appropriate binding configuration. This service expects SAML 1.1 provided by udoozSTS. Since, this is expected as part of request message, it has been declared in Message security mode.
This is has to be declared in <identity> section of <issuer>.
<identity> <certificateReference findValue="WCFServerKey" x509FindType="FindBySubjectName" storeLocation="LocalMachine" storeName="TrustedPeople" /> </identity>
This has to be declared in <claimTypeRequirements> element under <message>.
<claimTypeRequirements> <add claimType="http://schemas.udooz.net/2010/12/identity/claims/facebookId" isOptional="false"/> <add claimType="http://schemas.udooz.net/2010/12/identity/claims/orgName" isOptional="false"/> </claimTypeRequirements>
The whole configuration related to this as
</pre> <bindings> <wsFederationHttpBinding> <binding name="mrservice"> <security mode="Message"> <message issuedTokenType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1" negotiateServiceCredential="false"> <claimTypeRequirements> <add claimType="http://schemas.udooz.net/2010/12/identity/claims/facebookId" isOptional="false"/> <add claimType="http://schemas.udooz.net/2010/12/identity/claims/orgName" isOptional="false"/> </claimTypeRequirements> <issuer address="http://udoozSTS/TokenService.svc" binding ="wsHttpBinding" bindingConfiguration="udoozSTSBinding" > <identity> <certificateReference findValue="WCFServerKey" x509FindType="FindBySubjectName" storeLocation="LocalMachine" storeName="TrustedPeople" /> </identity> </issuer> </message> </security> </binding> </wsFederationHttpBinding> <bindings>
The proofs are called as claims. A collection of claims about a consumer provided by a identity provider (STS) with its identity is called as ClaimSet.
The comic was developed using
.
To be continued…



















Dec 16, 2010 @ 09:23:22
Your blog is getting into another evolution.. This is was creativity…. YOu have long way to go… Keep continuing and inventing new ways of explaining concepts….
all the best.
cheers,
Saran.
Dec 16, 2010 @ 11:14:50
Wonderful way of explaining concepts!!! So easily understandable
Thanks a lot !!! and my best wishes to you in exploring more to make a layman delighted
Dec 16, 2010 @ 21:58:51
Thanks srividya
Dec 16, 2010 @ 11:18:02
Super Sheik..
Dec 16, 2010 @ 21:58:33
Thanks Senthil
Dec 16, 2010 @ 12:05:51
Reminds of head first approach
If only all such *Complicated* topics are explained
Dec 16, 2010 @ 21:58:08
Yes.
Dec 16, 2010 @ 14:22:05
“Real Clients” will be extremely happy if technology concepts were made that simple …….very creative Sheik…..keep it up …
Dec 16, 2010 @ 21:57:35
Thanks Preethi
Dec 16, 2010 @ 17:29:20
Great creativity, keep it up, this comical explaination helps to understand things easier for me.
Dec 16, 2010 @ 21:57:20
Thanks Ram
WCF Claims, STS and Federation – Layman’s View - Part 2 | Udooz!
Dec 23, 2010 @ 14:00:52
[...] the previous post, we have seen the service configuration of WCF federation. In this post, let us see the STS [...]
Jan 10, 2011 @ 01:18:56
Royal Takeaway Clayton
I have been reading your articles during my lunch break, and I have to admit the whole article has been very valuable and very well written.I also found a lot of stuff in your pages especially it’s discussion.I think I will come back soon.
Feb 02, 2011 @ 17:25:56
Thanks Clayton…Sure you are welcome
Apr 13, 2011 @ 17:52:38
Hi, is there any link to download whole example or can you give me whole example ?
Thanks in advance