首页 > 解决方案 > 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

https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/service-identity-and-authentication

and I try to set SSL to verity but this way doesn't seem to be getting caller's identity

https://docs.microsoft.com/en-us/dotnet/framework/wcf/feature-details/transport-security-with-certificate-authentication

It any way to get caller identity without login and sample code to refer?

标签: vb.netwcf

解决方案


根据您对 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 中的身份验证


推荐阅读