UPN
            var id = HttpContext.User.Identity as ClaimsIdentity;
 
            StringBuilder s = new StringBuilder();
            foreach (Claim c in id.Claims)
            {
                s.Append(c.Type + " :: " + c.Value + "\n");
            }
    string upn = ClaimsPrincipal.Current.FindFirst("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn").Value;
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License