I do not see anything strange in your code. It should work.
At what point do you check User.Identity.IsAuthenticated
?
Is it possible you can give me a more complete project which demonstrates the problem end-to-end?
I do not see anything strange in your code. It should work.
At what point do you check User.Identity.IsAuthenticated
?
Is it possible you can give me a more complete project which demonstrates the problem end-to-end?