basicHttpBinding 不使用自定义 ServiceCredentials
我有一个实现了自定义 ServiceCredentials 的 WCF 服务,它们使用自定义 ServiceCredentialsSecurityTokenManager,它使用自定义 UserNameSecurityTokenAuthenticator。
这与我的 netTcpBinding 一起使用,但我想实现一个应该通过 basicHttpBinding 连接的 WebClient 。但是 basicHttpBinding 不使用我的自定义 ServiceCredentials 。
I have a WCF-Service with custom ServiceCredentials implemented, they use a custom ServiceCredentialsSecurityTokenManager which is using a custom 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..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
仅当您使用 SSL 时,将自定义凭据与 basicHttpBinding 结合使用才有效。
当您不使用 SSL 时,不会提交凭据,也不会调用您的验证器。
Using custom credentials with basicHttpBinding only works when you're using SSL.
The credentials won't be submitted and your validator won't be called when you're not using SSL.