public TokenManager(string serviceName, string username, string password) : this() { UserName = username; Password = password; ServiceSettings = HostConfigurator.SecureSettingsForService(serviceName); }
public TokenManager(string serviceName, NetworkCredential credential) : this() { this.Credential = credential; ServiceSettings = HostConfigurator.SecureSettingsForService(serviceName); }
public Binding Create(Endpoint serviceInterface) { var stsBinding = new CustomBinding(); var stsBindingElement = SecurityBindingElement.CreateUserNameOverTransportBindingElement(); stsBindingElement.AllowInsecureTransport = true; stsBinding.Elements.AddRange(new BindingElement[] { stsBindingElement, new TextMessageEncodingBindingElement(MessageVersion.Default, Encoding.UTF8), new HttpsTransportBindingElement { AuthenticationScheme = AuthenticationSchemes.Basic } }); return stsBinding; }
public Binding Create(Endpoint serviceInterface) { throw new System.NotImplementedException(); }