Asp.net WindowsImpersonationContext not found in DNX 5

370 views Asked by At

In a Mvc WebApp I am stuck at this line in a controller:

WindowsImpersonationContext impersonationContext = WindowsIdentity.GetCurrent().Impersonate();

VS 2015 Community complaints about WindowsImpersonationContext which is not defined in DNX 5 (but it is correctly referenced by DNX 4.5.1 in the same project). I added System.Security inside DNX 4.5.1 References but there are no assemblies available for DNX 5.

I do understand DNX is becoming a multiplatform runtime, but now how do I implement a Windows Identity impersonation in my project? TIA

[update] There is a closed issue on github's DNX Core repository: #4533 but it is marked as RC2. Maybe shall wait for the next release.

0

There are 0 answers