Confusion in supporting tokens.

hi,

I m trying to send a custom token over the wire to STS. So create the custom token and defined all objects taht required for that. TokenManager, TokenSerializer and TokenProvider, TokenAuthneticator.It s all good.

I would like to use transport level security i.e TransportWithCredentials..

here how it done :

//sts binding

TransportSecurityBindingElement transportSecurity =SecurityBindingElement.CreateIssuedTokenOverTransportBindingElement(newCustomerSecurityTokenParameters());

CustomBinding stsBinding =newCustomBinding(transportSecurity,newHttpsTransportBindingElement());

the confusion comes why it adds token into endorsing token. I dont require to use endorsing token and dont want to create secondary signature plus defining security keys i.e. it sseem same as

TransportSecurityBindingElement transportSecurity =newTransportSecurityBindingElement();

transportSecurity.EndpointSupportingTokenParameters.Signed.Add(newCustomerSecurityTokenParameters());

CustomBinding stsBinding =newCustomBinding(transportSecurity,newHttpsTransportBindingElement());

question is that I m getting error when I redefine the above like

transportSecurity.EndpointSupportingTokenParameters.Signed.Add(newCustomerSecurityTokenParameters());

certs are looks ok. what can be an issue?

Thanks.

[2030 byte] By [dejawoo] at [2008-1-4]

Visual Studio Orcas

Site Classified