title: spring security without form login to use a rest endpoint for authentication
body: <p>I have researched on this a bit and found the following answers. </p>
  
  <ol>
  <li>to use http-basic</li>
  <li>create a custom handlers[as my search consists of rest endpoint] and without http-basic or form-login config I am getting <code>No AuthenticationEntryPoint could be established.</code></li>
  <li>Use <code>create-session=stateless</code></li>
  </ol>
  
  <p>My Use case:</p>
  
  <p>I have built a Rest endpoint which uses the AuthenticationManager for validating the username and password from a POST request to the endpoint. 
  let us for convenience consider the endpoint as <code>/checkSubscriberLogin</code>.
  Everything works fine. I could do a POST request and get the response as <code>"message:authenticated"</code> or <code>message:user not found</code> depending on the authenticationProvider.
  But Now I want to use only this endpoint and don't want to use either <code>form-login</code> or <code>http-basic</code> or <code>create-session=stateless</code></p>
  
  <p>Can some one help me. I can add details if I am missing any, please help me. </p>