We are running our SSO login module, we want to update the last login time stamp on successful login. How can we implement or update the attribute that stores the last login time stamp on success. Currently we authorize the user but don't see the login time stamp updated at all. In spite of the fact that user get's authenticated stored in session and login successfully.
We have tried few things like:
WE found the solution, where we have to manually call the following piece of code:
LoginManager loginManager = (LoginManager) ContainerManager.getComponent("loginManager");
loginManager.onSuccessfulLoginAttempt(username, request);
by explicitly calling onSuccessfulLoginAttempt method, it updates the last login timestamp for user who logs-in through SSO.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.