Announcement Announcement Module
Collapse
No announcement yet.
how i can set an url in pre authentication provider that re execute the authenticatio Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • how i can set an url in pre authentication provider that re execute the authenticatio

    how i can set an url in pre authentication provider that re execute the authentication when i call it?



    Code:
    <security:http   auto-config='true'	authentication-manager-ref="authenticationManager" >
    	
    		<security:intercept-url pattern="/*" access="ROLE_USER" />
    		<security:custom-filter ref="siteminderFilter"/>
    		
    	</security:http>
    
    	<security:global-method-security secured-annotations="enabled" />
    	<bean id="myUserDetailsService"
    		class="it.eng.serviziasilinido.authenticationprovider.MyUserDetailsService">
    
    	</bean>
    
    
    	<bean id="siteminderFilter"
    		class="org.springframework.security.web.authentication.preauth.RequestHeaderAuthenticationFilter">
    		<property name="principalRequestHeader" value="iv-user"  />
    		<property name="authenticationManager" ref="authenticationManager" />
    		<property name="invalidateSessionOnPrincipalChange" value="true"/>
    		 
    	</bean>
    
    	<bean id="preauthAuthProvider"
    		class="it.eng.serviziasilinido.authenticationprovider.PreAuthenticatedAuthenticationProvider">
    		<property name="preAuthenticatedUserDetailsService">
    			<bean id="userDetailsServiceWrapper" class="org.springframework.security.core.userdetails.UserDetailsByNameServiceWrapper">
    				<property name="userDetailsService" ref="myUserDetailsService" />
    			</bean>
    		</property>
    	</bean>
    
    
    	<security:authentication-manager id="authenticationManager">
    		<security:authentication-provider ref="preauthAuthProvider" />
    	</security:authentication-manager>
    
    </beans>
Working...
X