Turpis
Programmer
- Apr 16, 2002
- 151
Is there a way to get the same result as the WebForms HttpContext.User.Identity.Name.ToString() to get the username in MVC?
I tried this in my controller and it just comes back blank. The purpose is common across our intranet, when a record is created or update the user name and date is recorded on that record.
Also, since our entire intranet security schema is dependent on AD security so I suppose HttpContext.User.IsInRole("GroupName") isn't going to work either. Good old separation of duties...so how do I know who the user is without login pages?
Love learning new concepts (NOT)...makes me feel like a nube.
Charles
Business Systems/Developer
I tried this in my controller and it just comes back blank. The purpose is common across our intranet, when a record is created or update the user name and date is recorded on that record.
Also, since our entire intranet security schema is dependent on AD security so I suppose HttpContext.User.IsInRole("GroupName") isn't going to work either. Good old separation of duties...so how do I know who the user is without login pages?
Love learning new concepts (NOT)...makes me feel like a nube.
Charles
Business Systems/Developer