简体   繁体   中英

WCF Service User Identification

I am creating a .NET 4.5 WCF web service for deployment on Windows Server 2008 running IIS 7.0. 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. I can't use Integrated Windows Authentication (some of my clients are using Linux machines) so, I must pass the token string. 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.
  2. Validate a Kerberos token string in C# .NET 4.5 and get the associate username.

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. Is it an intranet or internet scanario? How are the Linux users identified?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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