Asp.Net Core User Impersonation code Sample
See ImpersonationController
for the working code. Most other places are unchanged and are identical to template provided by Visual Studio 2017 (July 2017).
More information in blog-post: http://tech.trailmax.info/2017/07/user-impersonation-in-asp-net-core/
Currently there are 2 branches in this repository corresponding to different versions of Core: CoreV1 and CoreV2. Please use code corresponding to your version of the framework.
Master branch will use the latest version of the framework, currently it is identical to Core V2.