Comments (1)
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)
- UserMgtFailureAuditLoggerTest is skippped
- JS Functions, Getting current tenant domain by context instead of threadlocal HOT 1
- MultiAttributeSeperator always overriden by DefaultClaimHandler HOT 1
- Please open a security advisory
- Error log in wso2carbon log- ERROR {org.wso2.carbon.identity.claim.metadata.mgt.ClaimMetadataHandler} - Invalid argument: 'otherDialectURI' is 'NULL'
- Database tables duplicated in postgresql create script
- Authenticated subject is not passing properly
- Can JSONRequestParser/ResponseWriter be pulled into their own jar?
- Fix unique constraint in configuration management test script
- Missing brace in the identity.xml.j2
- Implement deletion of Identity Providers on Tenant Deletion
- Implement deletion of all consents of a tenant on tenant deletion
- Implement deletion of Claim Metadata on Tenant Deletion
- Implement deletion of Service Provider Apps on Tenant Deletion
- Implement deletion of Workflows on Tenant Deletion
- Post Application Listeners are not called when creating a Service Provider from Mgt Console
- Repeated DB calls when external claims are retrieved
- Multiple "update IDP" queries being Issued In the authentication flow HOT 1
- External claim retrieval oracle query issue
- Add character set definition for all the tables HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carbon-identity-framework.