简体   繁体   English

WCF服务用户标识

[英]WCF Service User Identification

I am creating a .NET 4.5 WCF web service for deployment on Windows Server 2008 running IIS 7.0. 我正在创建.NET 4.5 WCF Web服务,以在运行IIS 7.0的Windows Server 2008上进行部署。 I want my web service to identify the users who access the service by authenticating a Kerberos token string that is passed through the web service. 我希望我的Web服务通过验证通过Web服务传递的Kerberos令牌字符串来标识访问该服务的用户。 I can't use Integrated Windows Authentication (some of my clients are using Linux machines) so, I must pass the token string. 我无法使用集成Windows身份验证(某些客户端使用Linux计算机),因此,我必须传递令牌字符串。 Does anyone know how I can do the following: 有谁知道我该怎么做:

  1. Generate a Kerberos token string in C# .NET 4.5 based a users current identity. 根据用户当前身份在C#.NET 4.5中生成Kerberos令牌字符串。
  2. Validate a Kerberos token string in C# .NET 4.5 and get the associate username. 在C#.NET 4.5中验证Kerberos令牌字符串,并获取关联的用户名。

Thanks! 谢谢!

You could maybe expose the service with two bindings, one for Windows-users with Windows-authentication and one for others using user name authentication. 您可能会通过两个绑定来公开该服务,一个绑定用于具有Windows身份验证的Windows用户,一个绑定用于其他使用用户名身份验证的用户。 Is it an intranet or internet scanario? 是Intranet还是Internet Scanario? How are the Linux users identified? 如何识别Linux用户?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM