public override ServiceHostBase CreateServiceHost(string constructorString, Uri[] baseAddresses) { ServiceHost serviceHost = new EchoServiceHost(baseAddresses); Binding sslOioBinding = new ServiceproviderBinding(true); serviceHost.AddServiceEndpoint("EchoWebserviceprovider.Interfaces.IEchoService", sslOioBinding, "Echo"); Binding oioBinding = new ServiceproviderBinding(false); serviceHost.AddServiceEndpoint("EchoWebserviceprovider.Interfaces.IEchoService", oioBinding, "Echo"); ServicePointManager.ServerCertificateValidationCallback = delegate { return(true); }; //Removes Validationcheck of SSL certificate, should not be here for Production. OIOFederatedServiceCredentials.Setup(serviceHost); return(serviceHost); }
public OIOFederatedSecurityTokenManger(OIOFederatedServiceCredentials credentials) : base(credentials,credentials.SecurityTokenHandlers, credentials.ClaimsAuthenticationManager, credentials.SaveBootstrapTokenInSession) { }