public static string GetUserName(this ClaimsPrincipal principal) { return principal.FindFirstValue(ClaimsIdentity.DefaultNameClaimType); }