How do you do Impersonation in .NET?

前端 未结 7 2251
情话喂你
情话喂你 2020-11-21 07:01

Is there a simple out of the box way to impersonate a user in .NET?

So far I\'ve been using this class from code project for all my impersonation requirements.

7条回答
  •  南笙
    南笙 (楼主)
    2020-11-21 07:49

    You can use this solution. (Use nuget package) The source code is available on : Github: https://github.com/michelcedric/UserImpersonation

    More detail https://michelcedric.wordpress.com/2015/09/03/usurpation-didentite-dun-user-c-user-impersonation/

提交回复
热议问题