37 references to WindowsPrincipal
csc (2)
src\Compilers\Shared\BuildServerConnection.cs (1)
548var principal = new WindowsPrincipal(currentIdentity);
src\Compilers\Shared\NamedPipeUtil.cs (1)
71var currentPrincipal = new WindowsPrincipal(currentIdentity);
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
48var principal = new WindowsPrincipal(identity);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\SkipIfNotAdminAttribute.cs (1)
18var principal = new WindowsPrincipal(identity);
IIS.LongTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
48var principal = new WindowsPrincipal(identity);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\SkipIfNotAdminAttribute.cs (1)
18var principal = new WindowsPrincipal(identity);
IIS.NewHandler.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
48var principal = new WindowsPrincipal(identity);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\SkipIfNotAdminAttribute.cs (1)
18var principal = new WindowsPrincipal(identity);
IIS.NewShim.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
48var principal = new WindowsPrincipal(identity);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\SkipIfNotAdminAttribute.cs (1)
18var principal = new WindowsPrincipal(identity);
IIS.ShadowCopy.Tests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
48var principal = new WindowsPrincipal(identity);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\SkipIfNotAdminAttribute.cs (1)
18var principal = new WindowsPrincipal(identity);
IISExpress.FunctionalTests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\SkipIfNotAdminAttribute.cs (1)
18var principal = new WindowsPrincipal(identity);
Microsoft.AspNetCore.Authentication.Negotiate (1)
NegotiateHandler.cs (1)
328user = new WindowsPrincipal(winIdentity);
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
685newContext.User = new WindowsPrincipal((WindowsIdentity)(windowsIdentity.Clone()));
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionDispatcherTests.cs (2)
1853context.User = new WindowsPrincipal(windowsIdentity); 1954context.User = new WindowsPrincipal(windowsIdentity);
Microsoft.AspNetCore.Server.HttpSys (2)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (2)
353return new WindowsPrincipal(identity); 358return new WindowsPrincipal(WindowsIdentity.GetAnonymous()); // Anonymous / !IsAuthenticated
Microsoft.AspNetCore.Server.IIS (3)
Core\IISHttpContext.cs (1)
845return new WindowsPrincipal(new WindowsIdentity(token, authenticationType));
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (2)
353return new WindowsPrincipal(identity); 358return new WindowsPrincipal(WindowsIdentity.GetAnonymous()); // Anonymous / !IsAuthenticated
Microsoft.AspNetCore.Server.IISIntegration (1)
IISMiddleware.cs (1)
186return new WindowsPrincipal(winIdentity);
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\HttpSys\RequestProcessing\NativeRequestContext.cs (2)
353return new WindowsPrincipal(identity); 358return new WindowsPrincipal(WindowsIdentity.GetAnonymous()); // Anonymous / !IsAuthenticated
Microsoft.Build.Tasks.CodeAnalysis (2)
src\Compilers\Shared\BuildServerConnection.cs (1)
548var principal = new WindowsPrincipal(currentIdentity);
src\Compilers\Shared\NamedPipeUtil.cs (1)
71var currentPrincipal = new WindowsPrincipal(currentIdentity);
Microsoft.ML.TensorFlow (1)
TensorflowUtils.cs (1)
301if (currentIdentity != null && new WindowsPrincipal(currentIdentity).IsInRole(WindowsBuiltInRole.Administrator))
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\ApplicationServices\WindowsFormsApplicationBase.vb (1)
161Thread.CurrentPrincipal = New Principal.WindowsPrincipal(Principal.WindowsIdentity.GetCurrent)
MSBuildTaskHost (1)
CommunicationsUtilities.cs (1)
692if (new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator))
Replay (2)
src\Compilers\Shared\BuildServerConnection.cs (1)
548var principal = new WindowsPrincipal(currentIdentity);
src\Compilers\Shared\NamedPipeUtil.cs (1)
71var currentPrincipal = new WindowsPrincipal(currentIdentity);
RunTests (1)
ProcDumpUtil.cs (1)
41WindowsPrincipal principal = new WindowsPrincipal(identity);
vbc (2)
src\Compilers\Shared\BuildServerConnection.cs (1)
548var principal = new WindowsPrincipal(currentIdentity);
src\Compilers\Shared\NamedPipeUtil.cs (1)
71var currentPrincipal = new WindowsPrincipal(currentIdentity);
VBCSCompiler (2)
src\Compilers\Shared\BuildServerConnection.cs (1)
548var principal = new WindowsPrincipal(currentIdentity);
src\Compilers\Shared\NamedPipeUtil.cs (1)
71var currentPrincipal = new WindowsPrincipal(currentIdentity);