title: Spring Security HTTP Basic Authentication
body: <p>I am trying to do a really simple basic authentication with Spring Security. I have configured the namespace properly and there are no Exceptions in the server. In my "servlet.xml" I have got the next for Spring Security:</p>
  
  <pre><code>&lt;security:http&gt;
      &lt;security:http-basic&gt;&lt;/security:http-basic&gt;
      &lt;security:intercept-url method="POST" pattern="/**" access="ROLE_USER" /&gt;
  &lt;/security:http&gt;
  
  
  &lt;security:authentication-manager alias="authenticationManager"&gt;
      &lt;security:authentication-provider&gt;
          &lt;security:user-service&gt;
              &lt;security:user name="cucu" password="tas" authorities="ROLE_USER" /&gt;
              &lt;security:user name="bob" password="bobspassword" authorities="ROLE_USER" /&gt;
          &lt;/security:user-service&gt;
      &lt;/security:authentication-provider&gt;
  &lt;/security:authentication-manager&gt;
  </code></pre>
  
  <p>It nearly all goes perfect: The methods that are not <code>POST</code> doesn't prompt any login form, and the <code>POST</code> method prompt it. The problem is, that nor <code>cucu</code>, neither <code>bob</code> can login there. Can anyone see what am I doing wrong?</p>
  
  <p>Thanks in advance! ;-)</p>