Note that there are some explanatory texts on larger screens.

plurals
  1. POSOAP web service and Spring Security
    primarykey
    data
    text
    <p>I'm trying to secure a SOAP web service with Spring Security 3.</p> <p>This is my configuration:</p> <pre><code>&lt;jee:jndi-lookup id="dataSource" jndi-name="jdbc/myDB" expected-type="javax.sql.DataSource" /&gt; &lt;http authentication-manager-ref="authenticationManager"&gt; &lt;intercept-url pattern="/**" access="ROLE_USER" requires-channel="https" /&gt; &lt;http-basic /&gt; &lt;logout logout-url="/logout" delete-cookies="JSESSIONID" /&gt; &lt;/http&gt; &lt;authentication-manager id="authenticationManager"&gt; &lt;authentication-provider&gt; &lt;jdbc-user-service data-source-ref="dataSource" /&gt; &lt;/authentication-provider&gt; &lt;/authentication-manager&gt; </code></pre> <p>Tomcat is configured for SSL, a keystore containing the server's private key is used. I'm testing the web service with SOAPUI. I've created a request that perform one of the operation provided by the service. In the Auth section, I've added the username and password of the test user according to the value present in the database. After sending the request, I expect that a session is created and that there is no need to authenticate again. In the HTTP response, the JSESSIONID cookie is present. When a web site is secured by the same mechanism, the user enters its credentials only once until its session is expired when he needs to reauthenticate.</p> <p>What's wrong with my config?</p> <hr> <p>EDIT: I forgot to add that when I resend the same request multiple times, the received JSESSIONID cookie has always a different value. Should I expect it to be the same for a given session?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload