public static string UserName(this IPrincipal principal)
 {
     return(principal.Cast()?.DecryptedTicket.UserName);
 }
 public static string[] OnBehalfOf(this IPrincipal principal)
 {
     return(principal.Cast()?.DecryptedTicket.OnBehalfOf ?? new string[0]);
 }