Announcement Announcement Module
Collapse
No announcement yet.
Remember Me using spring security Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Remember Me using spring security

    Hi,
    I am currently trying to implement remember me functionality in my website. Following is part of my configuration
    <security:remember-me services-ref="rememberMeServices" />
    <bean id="rememberMeServices" class="com.entertainment.ecom.web.auth.EcomRemembe rMeServices">
    <property name="userDetailsService" ref="ecomUserDetailsService"/>
    <property name="key" value="a23eef6dfd1514cb885f47070380ff18"/>
    <property name="cookieName" value="ENTC"/>
    <property name="tokenValiditySeconds" value="80000"/>
    </bean>


    My EcomRememberMeServices extends AbstractRememberMeServices & I have overridden onLoginFail & onLoginSuccess methods. My question is, from where my onLoginSuccess() method will be called?
    I have tried to run above configuration & it was seen that onLoginFail gets called through RememberMeAuthenticationFilter but when I checked source code for this filter, I could not find any call for onLoginSuccess() method. So do I need to call this explicitly?

  • #2
    Originally posted by venky_194 View Post
    Hi,
    I am currently trying to implement remember me functionality in my website. Following is part of my configuration
    <security:remember-me services-ref="rememberMeServices" />
    <bean id="rememberMeServices" class="com.entertainment.ecom.web.auth.EcomRemembe rMeServices">
    <property name="userDetailsService" ref="ecomUserDetailsService"/>
    <property name="key" value="a23eef6dfd1514cb885f47070380ff18"/>
    <property name="cookieName" value="ENTC"/>
    <property name="tokenValiditySeconds" value="80000"/>
    </bean>


    My EcomRememberMeServices extends AbstractRememberMeServices & I have overridden onLoginFail & onLoginSuccess methods. My question is, from where my onLoginSuccess() method will be called?
    I have tried to run above configuration & it was seen that onLoginFail gets called through RememberMeAuthenticationFilter but when I checked source code for this filter, I could not find any call for onLoginSuccess() method. So do I need to call this explicitly?
    AbstractRememberMeServices calls them in the loginFail and loginSuccess methods.

    Comment

    Working...
    X