コード例 #1
0
        public void AddBindingParameters(ServiceEndpoint endpoint, System.ServiceModel.Channels.BindingParameterCollection bindingParameters)
        {
            SsoClientCredentials cred = bindingParameters.Find <SsoClientCredentials>();

            if (cred == null)
            {
                throw new ConfigurationErrorsException("The session behavior must be used in conjunction with SsoClientCredentials");
            }
            cred.Session  = session;
            cred.Duration = duration;
            cred.Cache    = cache;
            cred.Config   = config;
        }
コード例 #2
0
 public SsoSecurityTokenProvider(SsoClientCredentials clientCredentials, IssuedSecurityTokenParameters tokenRequirement)
 {
     this.clientCredentials = clientCredentials;
     this.tokenRequirement  = tokenRequirement;
 }
コード例 #3
0
 protected SsoClientCredentials(SsoClientCredentials other)
     : base(other)
 {
 }
コード例 #4
0
 protected SsoClientCredentials(SsoClientCredentials other)
     : base(other)
 {
 }
コード例 #5
0
 public SsoSecurityTokenProvider(SsoClientCredentials clientCredentials, IssuedSecurityTokenParameters tokenRequirement)
 {
     this.clientCredentials = clientCredentials;
     this.tokenRequirement = tokenRequirement;
 }