Click here to Skip to main content
14,872,753 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to build a some king of a Client+service+STS.
I am using a client credentials and service credentials behavior to apply for a token being sent from the client to the service via the behavior.

Thats for the background...

I am trying to implement the following code via a config file:

HttpTransportBindingElement httpTransport = new HttpTransportBindingElement();

// the message security binding element will be configured to require a credit card
// token that is encrypted with the service's certificate
SymmetricSecurityBindingElement messageSecurity = new SymmetricSecurityBindingElement();
messageSecurity.EndpointSupportingTokenParameters.SignedEncrypted.Add(new CreditCardTokenParameters());
X509SecurityTokenParameters x509ProtectionParameters = new X509SecurityTokenParameters();
x509ProtectionParameters.InclusionMode = SecurityTokenInclusionMode.Never;
messageSecurity.ProtectionTokenParameters = x509ProtectionParameters;
return new CustomBinding(messageSecurity, httpTransport);


Means I would like a binding which includes s a token parameters.

Can someone show me the same operation done via a config file?

Thanks
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900