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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.