I have had issue with JWT token authentication in stateless mode, where is IsAuthenticated property is always set to ‘false’. The issue does not exist in cookie based authentication for the same request. As a workaround I used ” Context.User.Name” property instead.
The default TokenDelegatingHandler is using UserService.SwitchToUser method to log in the user. However, UserService is loading the user with isAuthenticated parameter set to false.