I have asp .net mvc application with authorization system. Console(or winforms, doesn't matter) application uses WebRequest to post some data to server. Everything is ok, but know I need check, is user authorized, and return it. So, I'm cheking
User.Identity.IsAuthenticated
and it returns false. But in browser I'm authenticated and this method obviosly works in mvc-aplication, but when console application sends requests, it doesn't work. How to solve it?
I'm using it to load my files