Get user info for when deployed to Azure
<p>MVC5 .Net 4.6.1</p>

<p>I have the following code to get the currently logged in Windows user:</p>

<pre><code> var windowsIdentity = System.Security.Principal.WindowsIdentity.GetCurrent();
  var value = windowsIdentity.Name;//returns SYSTEMS\\CJones
</code></pre>

<p>Works like a charm when running locally. I deploy my site to Azure and now this exact code returns:</p>

<pre><code>  azurewebappname_ee6a
</code></pre>

<p>Of course this will not work. Does anyone know how to get the currently logged in windows user so the Azure web app will not be detected instead?</p>