Last post Aug 11, 2016 05:39 AM by Yohann Lu
Aug 10, 2016 08:06 AM|sudip_inn|LINK
i just do not know that is it possible to implement form auth with web api when web api would be self host in c# console apps ?
if possible then please include some link which show me how to achieve this with sample code.
Aug 11, 2016 05:39 AM|Yohann Lu|LINK
As far as I know, Forms authentication uses an HTML form to send the user’s credentials to the server. Forms authentication is only appropriate for web APIs that are called from a web application, so that the user can interact with the HTML form. So, it
is possible to implement form auth with web api.
Currently, I have not found a complete example about implementing form auth with web api when web api self host in c# console apps.
You can refer the following links and make a test on your side.
Forms Authentication in ASP.NET Web API:
Forms Authentication using Web API:
Using Forms Authentication with ASP.net Web Api: