Beispiel #1
0
        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;
        }
Beispiel #2
0
 // binding is always TransportWithMessageCredentialy
 public WsFederationHttpBinding(WsTrustTokenParameters wsTrustTokenParameters) : base(SecurityMode.TransportWithMessageCredential)
 {
     WsTrustTokenParameters = wsTrustTokenParameters ?? throw new ArgumentNullException(nameof(wsTrustTokenParameters));
     Security.Message.ClientCredentialType = MessageCredentialType.IssuedToken;
 }
Beispiel #3
0
 public WsFederationBindingElement(WsTrustTokenParameters wsTrustTokenParameters, SecurityBindingElement securityBindingElement)
 {
     WsTrustTokenParameters = wsTrustTokenParameters;
     SecurityBindingElement = securityBindingElement;
 }