I am using windows Authentication and accessing user name as.
IIdentity winId = HttpContext.Current.User.Identity; string name = winId.Name;
You can define a MyCustomIdentity by overriding from IIdentity and add your own properties etc.
MyCustomIdentity
IIdentity