basicHttpBinding 不使用自定义 ServiceCredentials

发布于 2024-12-14 13:08:12 字数 261 浏览 4 评论 0原文

我有一个实现了自定义 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

撩人痒 2024-12-21 13:08:12

仅当您使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文