Built-in helper to parse User.Identity.Name into Domain\Username

后端 未结 8 707
面向向阳花
面向向阳花 2020-12-02 22:23

Is there any built-in utility or helper to parse HttpContext.Current.User.Identity.Name, e.g. domain\\user to get separately domain name if exists

8条回答
  •  忘掉有多难
    2020-12-02 22:53

    I don't think so, because System.Security.Principal.WindowsIdentity doesn't contain such members.

提交回复
热议问题