[英]basicHttpBinding doesn't use custom ServiceCredentials
I have a WCF-Service with custom ServiceCredentials implemented, they use a custom ServiceCredentialsSecurityTokenManager which is using a custom UserNameSecurityTokenAuthenticator. 我有一个实现自定义ServiceCredentials的WCF服务,它们使用自定义ServiceCredentialsSecurityTokenManager,它使用自定义UserNameSecurityTokenAuthenticator。
This is working with my netTcpBinding but I wanted to implement a WebClient which should connect over basicHttpBinding.. But basicHttpBinding doesn't use my custom ServiceCredentials.. 这是我的netTcpBinding,但我想实现一个WebClient,它应该通过basicHttpBinding连接..但basicHttpBinding不使用我的自定义ServiceCredentials ..
Using custom credentials with basicHttpBinding only works when you're using SSL. 使用带有basicHttpBinding的自定义凭据仅在使用SSL时有效。 The credentials won't be submitted and your validator won't be called when you're not using SSL.
如果您不使用SSL,则不会提交凭据并且不会调用您的验证程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.