If I look at HttpContext.Current.User.Identity.Name I get values that map to what I see in the content database in UserInfo.tp_Login.
Since I have enabled both Windows Authentication and Forms Based Authentication (claims) in my SharePoint 2010 web application I see values like the following for UserInfo.tp_Login.
<netbios_domain>\<samAccountName>
i:0#.w|<netbios_domain>\<samAccountName>
i:0#.f|<provider_name>|<claimsUserId>
For example:
MYDOMAIN\john.doe
i:0#.w|mydomain\john.doe
i:0#.f|ldapmember|john.doe@mydomain.com
Is there a good guide as to what the valid formats are here? I need to parse this information unless there is something handy function that I can use. I checked SPUtility and SPUtility.GetAccountName didn't seem to help.
I'm pretty sure that the "w" in "i:0#.w" means Windows and the "f" in "i:0#.f" means Forms, but I'm wondering if there is an enumerated list of possibilities somewhere.