This is my first post, so let me know if I'm not following posting protocol properly.
My application uses Shibboleth/Spring Security and I am trying to pass multiple headers to UserDetailsService because I have to look up the user by different fields. My configuration looks the one at
http://static.springsource.org/sprin...e/preauth.html
i.e.
How can I accomplish doing something like :Code:<security:http> <!-- Additional http configuration omitted --> <security:custom-filter position="PRE_AUTH_FILTER" ref="siteminderFilter" /> </security:http> <bean id="siteminderFilter" class= "org.springframework.security.web.authentication.preauth.header.RequestHeaderAuthenticationFilter"> <property name="principalRequestHeader" value="SM_USER"/> <property name="authenticationManager" ref="authenticationManager" /> </bean> <bean id="preauthAuthProvider" class="org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationProvider"> <property name="preAuthenticatedUserDetailsService"> <bean id="userDetailsServiceWrapper" class="org.springframework.security.core.userdetails.UserDetailsByNameServiceWrapper"> <property name="userDetailsService" ref="userDetailsService"/> </bean> </property> </bean> <security:authentication-manager alias="authenticationManager"> <security:authentication-provider ref="preauthAuthProvider" /> </security-authentication-manager>
Any help is appreciatedCode:<bean id="siteminderFilter" class= "org.springframework.security.web.authentication.preauth.header.RequestHeaderAuthenticationFilter"> <property name="principalRequestHeader1" value="LOCAL_ID"/> <property name="principalRequestHeader2" value="GLOBAL_ID"/> <property name="principalRequestHeader3" value="OTHER_ID"/> <property name="authenticationManager" ref="authenticationManager" /> </bean>


Reply With Quote
