I'm working on a simple one page ASP.Net site used inside the company by a limited number of users.
In it, I use HttpContext.Current.User.Identity
to get the logged user's name in the format Domain\ActiveDirectoryUserName and stripping out the domain name as suggested by the answer in this post: Built-in helper to parse User.Identity.Name into Domain\Username and display it in a label like Hello xyz
Will there ever be a scenario, where the Domain name will not be present in HttpContext.Current.User.Identity
?
UPDATE: This site uses Windows Authentication