Note that there are some explanatory texts on larger screens.

plurals
  1. POSpring WS client authenticate using kerberos
    primarykey
    data
    text
    <p>How do I setup a spring ws client i.e, "WebServiceTemplate" to make requests to a service and authenticate using kerberos. The service is a spring ws endpoint on tomcat that is kerberized.</p> <p>Came across the following post <a href="http://blog.springsource.org/2009/09/28/spring-security-kerberos/" rel="nofollow">Spring Security Kerberos/SPNEGO Extension</a></p> <p>Does this setup allow the spring ws client to authenticate using kerberos ?</p> <pre><code>&lt;sec:http entry-point-ref="spnegoEntryPoint"&gt; &lt;sec:intercept-url pattern="/secure/**" access="IS_AUTHENTICATED_FULLY" /&gt; &lt;sec:custom-filter ref="spnegoAuthenticationProcessingFilter" position="BASIC_PROCESSING_FILTER" /&gt; &lt;/sec:http&gt; &lt;bean id="spnegoEntryPoint" class="org.springframework.security.extensions.kerberos.web.SpnegoEntryPoint" /&gt; &lt;bean id="spnegoAuthenticationProcessingFilter" class="org.springframework.security.extensions.kerberos.web.SpnegoAuthenticationProcessingFilter"&gt; &lt;property name="authenticationManager" ref="authenticationManager" /&gt; &lt;/bean&gt; &lt;sec:authentication-manager alias="authenticationManager"&gt; &lt;sec:authentication-provider ref="kerberosServiceAuthenticationProvider" /&gt; &lt;/sec:authentication-manager&gt; &lt;bean id="kerberosServiceAuthenticationProvider" class="org.springframework.security.extensions.kerberos.KerberosServiceAuthenticationProvider"&gt; &lt;property name="ticketValidator"&gt; &lt;bean class="org.springframework.security.extensions.kerberos.SunJaasKerberosTicketValidator"&gt; &lt;property name="servicePrincipal" value="HTTP/web.springsource.com" /&gt; &lt;property name="keyTabLocation" value="classpath:http-web.keytab" /&gt; &lt;/bean&gt; &lt;/property&gt; &lt;property name="userDetailsService" ref="dummyUserDetailsService" /&gt; &lt;/bean&gt; &lt;!-- Just returns the User authenticated by Kerberos and gives him the ROLE_USER --&gt; &lt;bean id="dummyUserDetailsService" class="org.springframework.security.extensions.kerberos.sample.DummyUserDetailsService"/&gt; </code></pre> <p>If I can use this to authenticate to the service using kerberos, can someone tell me the purpose of the below line. What should go into the implementation of "dummyUserDetailsService"</p> <pre><code>&lt;bean id="dummyUserDetailsService" class="org.springframework.security.extensions.kerberos.sample.DummyUserDetailsService"/&gt; </code></pre> <p>Also, how do I setup to make these calls over SSL</p> <p>Thanks much,</p> <p>ash</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