D
davshu
I need to get the username (domain\user) in a way that will work for both web
and client apps.
For web I would just use HttpContext.Current.User.Identity.Name
But this won't work for a client app.
I tried System.Security.Principal.WindowsIdentity.Name but my web app
returned a system account, not the authenticated user.
Anyone have any ideas?
and client apps.
For web I would just use HttpContext.Current.User.Identity.Name
But this won't work for a client app.
I tried System.Security.Principal.WindowsIdentity.Name but my web app
returned a system account, not the authenticated user.
Anyone have any ideas?