Authenticating ASP.NET MVC user from a WPF application
问题 How can I authenticate a user (with username and password) of an ASP.NET MVC application? I'm trying to do this using WebClient , passing NetworkCredentials , posting the request to the ASP.NET MVC application from my WPF client. How do I handle this request on the server? How do I get the passed username and password? I'm using forms authentication in the ASP.NET MVC app (the default that is created with a new project). 回答1: Forms authentication works in two steps: The user goes to the LogIn