Announcement Announcement Module
Collapse
No announcement yet.
remember me not work for spring acegi Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • remember me not work for spring acegi

    Hi

    my remember me check box does not work. below is my implementation any helps??

    xhtml page
    Code:
    <input type="checkbox" name="_spring_security_remember_me" value="ON" />
    configuration
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:security="http://www.springframework.org/schema/security"
    	xsi:schemaLocation="
               http://www.springframework.org/schema/beans
               http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
               http://www.springframework.org/schema/security
               http://www.springframework.org/schema/security/spring-security-2.0.2.xsd">
    
    	<!-- Configure Spring Security -->
    	<security:http auto-config="true"
    		access-decision-manager-ref="myAccessDecisionManager">
    		<security:form-login login-page="/spring/login"
    			login-processing-url="/spring/loginProcess" default-target-url="/spring/menu"
    			authentication-failure-url="/spring/login?login_error=1" />
    		<security:logout logout-url="/spring/logout"
    			logout-success-url="/spring/login" />
    		<security:intercept-url pattern="/spring/menu"
    			access="ROLE_OIS_ADMIN, ROLE_COMPANY_ADMIN" />
    		<security:anonymous />
    	</security:http>
    
    	<security:authentication-provider
    		user-service-ref="userDetailsService" />
    
    	<bean id="userDetailsService" class="com.ois.invoice.security.CustomUserService">
    		<property name="securityDao" ref="securityHibernateDao" />
    	</bean>
    
    	<bean id="simpleRightsVoter" class="com.ois.invoice.security.CustomRightsVoter" />
    	
    	<bean id="myAccessDecisionManager" class="org.springframework.security.vote.ConsensusBased">
    		<property name="decisionVoters">
    			<list>
    				<ref bean="simpleRightsVoter"/>
    			</list>
    		</property>
    	</bean>
    
    </beans>

  • #2
    And why should it work? There is nothing in there that enables remember me... I suggest a read of chapter 10 of the spring security reference guide..

    Comment

    Working...
    X