Impersonation and NetworkCredential

后端 未结 2 2110
终归单人心
终归单人心 2020-12-29 12:59

I need to pass a NetworkCredential object with the credentials of the currently impersonated user to a web service from an asp.net application.
My code look

2条回答
  •  长情又很酷
    2020-12-29 13:40

    A somewhat lengthy article in MSDN explaining the options to obtain network credentials in ASP:

    How To: Use Impersonation and Delegation in ASP.NET 2.0

    Another blog article on the topic (though I didn't check whether the solution actually works:

    .NET (C#) Impersonation with Network Credentials

提交回复
热议问题