Hi, => I created same login form in windows application. => Windows application only pass the values (Tenant name, username and password) and get the result. => Web application capture the values and check the database and send the result(If success means send the Id or send the "Invalid" message)to windows application.
Please help me
You can check this this example <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate-samples/tree/master/ConsoleRemoteWebApiCall">https://github.com/aspnetboilerplate/as ... WebApiCall</a>.
It has a sample for how to login from a console app. It will be almost same for win forms.