title: How to build a WebAPI for remote authentication?
body: <p>We are thinking about revising our existing membership provider into web service to allow remote authentication. Say, a windows 8 application will be able to accept login credentials and check it in our database on the server.</p>
  
  <p>---update---</p>
  
  <p>We have checked the video on asp.net website (<a href="http://www.asp.net/web-api/videos/getting-started/authorization" rel="nofollow">Authorization</a>, but only to find it is still using a traditional controller to do the authentication/authorization task. The video only shows we can use <code>[Authorize]</code> attribute. Is there a way to use an ApiController so that the authentication can be exposed as a webservice to be consumed by another application?</p>
  
  <p>---end of my update---</p>
  
  <p>I have been trying to find some example codes/project but found none so far. Can anyone suggestion a solution?</p>
  
  <p>Thanks.</p>