protected WsTrustTokenParameters(WsTrustTokenParameters other) : base(other) { foreach (var parameter in other.AdditionalRequestParameters) { AdditionalRequestParameters.Add(parameter); } CacheIssuedTokens = other.CacheIssuedTokens; foreach (var claimType in ClaimTypes) { ClaimTypes.Add(claimType); } _issuedTokenRenewalThresholdPercentage = other.IssuedTokenRenewalThresholdPercentage; KeySize = other.KeySize; _maxIssuedTokenCachingTime = other.MaxIssuedTokenCachingTime; _messageSecurityVersion = other.MessageSecurityVersion; RequestContext = other.RequestContext; _target = other.Target; EstablishSecurityContext = other.EstablishSecurityContext; }
// binding is always TransportWithMessageCredentialy public WsFederationHttpBinding(WsTrustTokenParameters wsTrustTokenParameters) : base(SecurityMode.TransportWithMessageCredential) { WsTrustTokenParameters = wsTrustTokenParameters ?? throw new ArgumentNullException(nameof(wsTrustTokenParameters)); Security.Message.ClientCredentialType = MessageCredentialType.IssuedToken; }
public WsFederationBindingElement(WsTrustTokenParameters wsTrustTokenParameters, SecurityBindingElement securityBindingElement) { WsTrustTokenParameters = wsTrustTokenParameters; SecurityBindingElement = securityBindingElement; }