How can I get the User.Identity.Name using Asp.Net 5? I have read in stackoverflow answers that HttpContext is not available anymore in this version and people are using HttpContextAccessor, But I have tried to use it and is not working for me, My context returns always null.
Is there any other way to do this? Does anyone suggest returning to Asp.Net 4.5 version?
So, I have some points to consider.. - My application is working normally, But I need to identify the user that is using the system. - I'm using the "domain\user" to store the allowed users on database, and I need to mantain that. - I'm using EntityFramework, AspNet5 and angularjs
Any suggestion?