Announcement Announcement Module
Collapse
No announcement yet.
Configuring the remember-me beans Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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>

    Comment

    Working...
    X