2010-05-28 74 views
1

我檢查了其他問題,但我不能找到工作的答案傳遞Windows憑據通過Web應用程序,以WCF

我有一個.NET Web應用程序成功地承擔了呼叫者Windows憑據(線程。 CurrentPrincipal是我的Windows用戶)。

在那個應用程序中,我打電話給一個WCF服務,但我的Windows身份不通過。不管我在綁定中輸入什麼:

NetTcpBinding binding = new NetTcpBinding(); 
binding.Security.Mode = SecurityMode.Transport; 
binding.Security.Transport.ClientCredentialType = TcpClientCredentialType.Windows; 

回答

3

你看看this的問題嗎? 也許您可以向我們展示您用於創建端點和通道的代碼。

+0

啊哈...事實證明,您需要在調用Web應用程序中打開「impersonate = true」,以便雙跳工作...即使該應用程序實際上以我的Windows帳戶作爲當前主體運行反正...奇怪! – Paul 2010-05-28 09:04:37

相關問題