Closed marcotana closed 4 years ago
Anything that you're doing differently to the example provided by dotnetify-react-template?
If you run that project, you can see the user name below always displays the correct logged in user.
I'll investigate further. I am using ASPNETCORE 3 so there may be some middleware issues that I'm having. Anyway, one thing that I did notice that Dotnetify middlewares do not get invoked when the VM is connected using the "Scope" element. I'm not sure if you want me to create a new issue on this. If so, just let me know. I'll close this depending on your answer.
Let's create a separate issue for the Scope, and please include steps to reproduce.
The current user doesn't seem to get updated when the user logs out and another user logs in without refreshing the browser. If I refresh the browser with the new user logged in, then I see the new user's identity. Do I need to do something different to make sure that the user I get from IPrinicpalAccessor (injected in a VM) always returns the current user?