Giter Site home page Giter Site logo

Comments (1)

M0nikaSharma avatar M0nikaSharma commented on July 2, 2024

Hi,
I am facing the same issue. lastlogin timestamp return the current login timestamp value.And i have observe that last login timestamp value is return when we have added below last login custom component jar file in the dropin folder of wso2 identity server"org.wso2.carbon.custom.user.operation.event.listener-1.0.0.jar" If we remove this file from dropin folder then last login timestamp value is not return.In this jar code I have found that lastlogin timestamp logic is return in the doPostAuthenticate method which is as below:

	long lastLoginTimestamp = System.currentTimeMillis();

            Map<String, String> claimMap = new HashMap<String, String>();

            claimMap.put(LAST_LOGIN_TIMESTAMP_CLAIM, Long.toString(lastLoginTimestamp));

In this logic we have saved the current system time in the lastLoginTimestamp variable. so it is return the current login timestamp.which should not be the lastLoginTimestamp because lastLoginTimestamp should be displayed as previous login time of user.
So let me know is it required to add org.wso2.carbon.custom.user.operation.event.listener-1.0.0.jar in wso2 dropin folder to retrieve the Lastlogin timestamp.This jar code is written in 2015 can you provide me the latest code for this jar.

from carbon-identity-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.