Impersonation and NetworkCredential

后端 未结 2 2090
终归单人心
终归单人心 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

    0 讨论(0)
  • 2020-12-29 13:41

    It's not possible to use the asp.net impersonated user (Current.User.Identity) for network authentication, it only works locally.

    0 讨论(0)
提交回复
热议问题