Results 1 to 2 of 2

Thread: Configuring the remember-me beans

  1. #1

    Default Configuring the remember-me beans

    Hi,

    I am running into a quite simple problem. I am using the ns based config and would like to change the validity of the token. From looking at the code and the reference guide I thougt that his here should do the job:

    http://pastebin.com/f4fcd7fe2

    So far the theorie. Something is wrong: the cookie is not beeing set. What am I missing?

    brgds,

    Papick

    ps: how do I post xml snippets here???

  2. #2

    Default With [code] :-)

    Code:
        <s:http auto-config="false" >
                    <s:intercept-url pattern="/**" access="ROLE_EDITOR" />
                    <s:form-login/>
                    <s:anonymous />
        </s:http>
    
        <beans:bean id="rememberMeServices"                class="org.springframework.security.ui.rememberme.TokenBasedRememberMeServices">
            <beans:property name="userDetailsService"
                            ref="userDetailsService" />
            <beans:property name="key" value="easiRememberMe" />
            <beans:property name="tokenValiditySeconds" value="180" />
        </beans:bean>
    
        <beans:bean id="rememberMeProcessingFilter" class="org.springframework.security.ui.rememberme.RememberMeProcessingFilter">
           <beans:property name="rememberMeServices" ref="rememberMeServices" />
           <beans:property name="authenticationManager" ref="authenticationManager" />
            <s:custom-filter position="REMEMBER_ME_FILTER "/>
        </beans:bean>

Tags for this Thread

Posting Permissions

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