Results 1 to 2 of 2

Thread: remember me not work for spring acegi

  1. #1
    Join Date
    Jan 2010
    Location
    Ottawa, Canada
    Posts
    37

    Default 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. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,629

    Default

    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..
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •