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
0 votes
1 answer
65 views

Code on German server parsing data correctly when run from admin page, but incorrectly when run as scheduled task

I posted this on https://stackoverflow.com/questions/70023408/aspose-worksheet-not-parsing-decimal-numbers-correctly-on-german-server-ignorin as well but figured I would frame it as a Sitecore ...
1 vote
1 answer
156 views

Virtual User causing error with AntiForgeryToken, The provided anti-forgery token was meant for user "extranet\user", but the current user is ""

My site uses SSO for login so most site users do not have Sitecore accounts, as such when a user logs in a virtual user is created: protected void CreateVirtualUser(SSOCentralUser user) { ...
4 votes
2 answers
450 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, ...
  • 365
1 vote
1 answer
173 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....