title: ASP.Net Identity using a custom auth provider/service
body: <p>I am currently developing an ASP.Net MVC web application that requires username and password authentication.  I started looking into using ASP.Net Identity for this however I have a very important requirement, the requirement is that the web application itself has no direct access to any databases, all DB Access is to be exposed to the application via an internal REST service.  This is due to certain security polices we follow.</p>
  
  <p>I realise that ASP.Net identity is capable of supporting external authentication methods but my question is split into 2 parts.</p>
  
  <p>1) How would I configure ASP.Net Identity to use my custom REST service for authentication?</p>
  
  <p>2) How would I go about developing a service that can be used by Identity for authentication ? (what would need to be returned from the service to ASP.Net Identity)</p>
  
  <p>Any help on this would be most appreciated.</p>