vb.net - Wcf how to verify the caller identity?
问题描述
I have a vb project and a WCF service. When I install the project on a different computer every time, how can I verify the identity of each caller without login and I research in microsoft website
and I try to set SSL to verity but this way doesn't seem to be getting caller's identity
It any way to get caller identity without login and sample code to refer?
解决方案
根据您对 SO 的问题,我认为您应该重新考虑这一点。您无法阻止客户端使用相同的用户名和密码调用您的服务。那么您的客户身份是什么?您可以使用传输层安全性并使用证书作为凭证来确定调用者的身份。
请参考以下链接。
https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/transport-security-with-certificate-authentication
https://docs.microsoft.com/en-us/dotnet/framework /wcf/feature-details/how-to-use-a-custom-user-name-and-password-validator
https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/ wcf 中的身份验证
推荐阅读
- haskell - 如何在 Hedis haskell pubSub 中发布
- azure-cloud-services - 在 Azure 云服务上启用 TLS 1.3
- tinymce - 已创建按钮后如何动态更改工具栏按钮图标?(TinyMCE 5.x)
- r - 如何修复“闭包不可子集”。
- reactjs - React 测试库不渲染 Emotion CSS
- pdf - 寻找可以为我提供 pdf 文本坐标的软件或 API
- rust - 我可以在 trait 的定义中给一个类型起别名,而不让编译器假设我正在定义一个具有默认值的关联类型吗?
- powershell - PowerShell 帮助重命名 AD 用户的主目录
- machine-learning - 为什么我在 LR 模型中得到 1.0 的训练准确度和 0.99 的测试准确度
- react-native - 如何在 React-Native 中向上滚动时制作从透明到实体动画的标题