I am planning to write a windows form application as client and a MVC4 WebAPI application as server. I need to know the best option to secure my WebAPI. Ideally I would want the user to provide credentials when they start the winform client, then WebAPI
should check if the user is authorised/authenticated before serving the request. Is it possible to maintain a session on the server exactly as if the request was from a browser? If not then what other options I have? Kindly provide links to any tutorials about
this
khan10200
0 Points
1 Post
Consuming Web API in Windows Form Securely
Nov 23, 2012 10:50 PM|LINK
I am planning to write a windows form application as client and a MVC4 WebAPI application as server. I need to know the best option to secure my WebAPI. Ideally I would want the user to provide credentials when they start the winform client, then WebAPI should check if the user is authorised/authenticated before serving the request. Is it possible to maintain a session on the server exactly as if the request was from a browser? If not then what other options I have? Kindly provide links to any tutorials about this
BrockAllen
All-Star
27574 Points
4912 Posts
MVP
Re: Consuming Web API in Windows Form Securely
Nov 24, 2012 12:09 AM|LINK
Sounds like you need basic authentication. Search for basic auth -- it's easy to implement both client and server side.
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/