Questions tagged [context-user]

Questions about Sitecore context user whether it is an anonymous and authenticated user, should use this tag

Filter by
Sorted by
Tagged with
3
votes
2answers
85 views

Virtual user persisting Roles after logout

I am trying to login a virtual user for my application and have assigned roles to this virtual user. var virtualUser = Sitecore.Security.Authentication.AuthenticationManager.BuildVirtualUser(userName, ...
1
vote
1answer
45 views

MVC custom controller Context.User is anonymous when authenticated

Any idea why Sitecore 9.3 would not pick up authenticated information of the user on a simple custom MVC controller method? I am trying to get the currently logged-in user, but it is showing Sitecore....