Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# basicHttpBinding不';不要使用自定义服务凭据_C#_Wcf_Security_Authentication_Authorization - Fatal编程技术网

C# basicHttpBinding不';不要使用自定义服务凭据

C# basicHttpBinding不';不要使用自定义服务凭据,c#,wcf,security,authentication,authorization,C#,Wcf,Security,Authentication,Authorization,我有一个实现了自定义ServiceCredentials的WCF服务,它们使用自定义ServiceCredentialsSecurityTokenManager,该管理器使用自定义UserNameSecurityTokenAuthenticator 这与我的netTcpBinding一起工作,但我想实现一个WebClient,它应该通过basicHttpBinding进行连接。。但是basicHttpBinding不使用我的自定义ServiceCredentials。仅当您使用SSL时,将自定义

我有一个实现了自定义ServiceCredentials的WCF服务,它们使用自定义ServiceCredentialsSecurityTokenManager,该管理器使用自定义UserNameSecurityTokenAuthenticator


这与我的netTcpBinding一起工作,但我想实现一个WebClient,它应该通过basicHttpBinding进行连接。。但是basicHttpBinding不使用我的自定义ServiceCredentials。

仅当您使用SSL时,将自定义凭据与basicHttpBinding一起使用才有效。 当您不使用SSL时,将不会提交凭据,也不会调用验证程序