0
我的客戶端上有這樣的結構。服務器端WCF客戶端身份驗證
WindowsIdentity wi = WindowsIdentity.GetCurrent();
IntPtr token = wi.Token;
下一步是通過WCF將身份驗證令牌發送到服務器,並在那裏模擬用戶。
api.SendToken(token);
...
...
...
但當我收到服務器端的令牌,並試圖建立的WindowsIdentity它拋出我一個錯誤:
WindowsIdentity newId = new WindowsIdentity(token);
Invalid token for impersonation - it cannot be duplicated.
難道你們,請幫我找出我做錯了,共享你的想法如何將令牌從客戶端傳遞到服務器。
謝謝!
是http://msdn.microsoft.com/en-us/library/ms751480.aspx有幫助嗎? – vlad 2012-04-02 12:54:47