I have the same requirements. I am trying to use a custom security manager
that extends from DefaultSecurityManager and a custom rememberMe manager
that extends from CookieRememberMeManager. In my custom class, I override
onSuccessfulLogin and rememberMeSuccessfulLogin to provide my own
after-login hook:
@Override
void onSuccessfulLogin(AuthenticationToken token, AuthenticationInfo info,
Subject subject) {
super.onSuccessfulLogin(token, info, subject)
afterLogin(token, info, subject)
}
@Override
void rememberMeSuccessfulLogin(AuthenticationToken token,
AuthenticationInfo info, Subject subject) {
super.rememberMeSuccessfulLogin(token, info, subject)
afterLogin(token, info, subject)
}
It works fine when users login with username and password. But when users
login with remember Me, these methods are not called. Is this the right way
to add a hook for remember me login?
Thanks,
Kenny
--
View this message in context:
http://shiro-user.582556.n2.nabble.com/Callout-for-remember-me-tp4610313p6874230.html
Sent from the Shiro User mailing list archive at Nabble.com.