Welcome to Windows Communication Foundation (WCF)
Top Tasks :

WCF Team Bloggers

Augmenting Security Requests

How can I add some additional information to the request when contacting a token server? Looking at the schema for a RequestSecurityToken message, there clearly is some extensibility space intended for providing additional information in the request. We'll ignore the fact that the actual schema says that the whole thing is an xs:any and only look at the annotated content model because WCF is a lot more likely to be designed with that content model in mind. < xs:element name ='RequestSecurityToken' type ='wst:RequestSecurityTokenType' /> < xs:complexType name ='RequestSecurityTokenType' > < xs:annotation > < xs:documentation > Actual content model is non-deterministic, hence wildcard. The following shows intended content model: &lt; xs:element ref='wst:TokenType' minOccurs='0' /> &lt; xs:element ref='wst:RequestType' /> &lt; xs:element ref='wsp:AppliesTo' minOccurs='0' /> &lt; xs:element ref='wst:Claims' minOccurs='0' /> &lt; xs:element ref='wst:Entropy' minOccurs='0' /> &lt; xs:element ref='wst:Lifetime' minOccurs='0' /> &lt; xs:element ref='wst:AllowPostdating' minOccurs='0' /> &lt; xs:element ref='wst:Renewing' minOccurs='0' /> &lt; xs:element ref='wst:OnBehalfOf' minOccurs='0' /> &lt; xs:element ref='wst:Issuer' minOccurs='0' /> &lt; xs:element ref='wst:AuthenticationType' minOccurs='0' /> &lt; xs:element ref='wst:KeyType' minOccurs='0' /> &lt; xs:element ref='wst:KeySize' minOccurs='0' /> &lt; xs:element ref='wst:SignatureAlgorithm' minOccurs='0' /> &lt; xs:element ref='wst:Encryption' minOccurs='0' /> &lt; xs:element ref='wst:EncryptionAlgorithm' minOccurs='0' /> &lt; xs:element ref='wst:CanonicalizationAlgorithm' minOccurs='0' /> &lt; xs:element ref='wst:ProofEncryption' minOccurs='0' /> &lt; xs:element ref='wst:UseKey' minOccurs='0' /> &lt; xs:element ref='wst:SignWith' minOccurs='0' /> &lt; xs:element ref='wst:EncryptWith' minOccurs='0' /> &lt; xs:element ref='wst:DelegateTo' minOccurs='0' /> &lt; xs:element ref='wst:Forwardable' minOccurs='0' /> &lt; xs:element ref='wst:Delegatable' minOccurs='0' /> &lt; xs:element ref='wsp:Policy' minOccurs='0' /> &lt; xs:element ref='wsp:PolicyReference' minOccurs='0' /> &lt; xs:any namespace='##other' processContents='lax' minOccurs='0' maxOccurs='unbounded' /> </ xs:documentation > </ xs:annotation Read More...
Published Friday, February 15, 2008 8:00 AM by Nicholas Allen's Indigo Blog

Comments

No Comments
Anonymous comments are disabled

Copyright © 2006 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us