Commit Graph

50 Commits

Author SHA1 Message Date
3d28adbe68 added a unit test for reegistration. Also some cleanup 2019-11-30 10:17:30 +05:30
d193ec0f11 Javascript user search implemented 2019-11-30 00:43:50 +05:30
62a7e192e6 Made optimizations to service and repo layers
-disabled open session in view
-added transactional to service classes and transactional read only
where necessary
-changed chatmessage query a bit
2019-11-28 11:08:50 +05:30
49f765737e initial implementation of registration captcha 2019-11-26 11:49:00 +05:30
ea4b2eb1b1 token auth filter now only catches badcredentialsexception instead of all exceptions. This prevents it from absorbing ALL exception stacktraces 2019-11-26 11:47:25 +05:30
493d3cd079 change json api demo endpoint to only allow access to super user. Token is now obtained from chat endpoint 2019-11-25 12:19:43 +05:30
f95b14d4e9 added metadata for token timeout property 2019-11-25 12:19:43 +05:30
5c653b669b token expiry and other errors are reported in web frontend with alerts. Later, the alterts must be replaced with a js notification library 2019-11-25 12:19:43 +05:30
9165770546 Token auth filter now return 440 http code on expired token 2019-11-25 12:19:43 +05:30
c2e0951144 change to lazy fetching in *toOne relationships and modified repository queries accordingy with join fetch to avoid n+1 queries 2019-11-25 12:19:43 +05:30
bf195efea7 minor change to user service impl 2019-11-25 12:19:43 +05:30
796d4ae032 cleanup up main class 2019-11-25 12:19:43 +05:30
e2e2428410 removed unneeded idb init code and moved sessions reset query to query.prop 2019-11-25 12:19:43 +05:30
0ecfda9980 db init service now uses hibernate connection instead of separate connection. Also, user sessions are now reset using jdbc as well 2019-11-25 12:19:43 +05:30
bee90dcef0 added logging to initializer service 2019-11-25 12:19:43 +05:30
f72f1b76fe cleaned up dbinitializerservice 2019-11-25 12:19:42 +05:30
80c7c18881 Token is delete and evicted from cache when num sessions hits 0. Also cleaned up loggeduser and added some logging 2019-11-25 12:19:42 +05:30
9a922cf5b9 added cacheevict 2019-11-25 12:19:42 +05:30
4c11415d9c removed old commented beanfilter code 2019-11-25 12:19:42 +05:30
eb7b2ab6d7 added further logging to tokenauthfilter 2019-11-25 12:19:42 +05:30
b0e67cc416 added exception handling to tokenauthfilter 2019-11-25 12:19:42 +05:30
8a339ddf83 Implemented token expiry
Token expiry can be set from properties file

Also changed tokenauthfiter from genericfilterbean to
onceperrequestfiter
2019-11-25 12:19:42 +05:30
25f55a6262 some optimizations 2019-11-25 12:19:42 +05:30
130525738a more refactoring and token is now deleted from database on logout 2019-11-25 12:19:42 +05:30
0ca1c47011 further cleanup and added get by token string in usertokenservice 2019-11-25 12:19:42 +05:30
deaefaf866 cleaned up the code a bit 2019-11-25 12:19:42 +05:30
264bc9efde switched to beanutil to get beans outside spring handled classes 2019-11-25 12:19:42 +05:30
1ecbc91e0e transferred token auth files 2019-11-25 12:19:42 +05:30
a91a142685 changed usersession fetchtype to lazy 2019-11-25 12:19:42 +05:30
84c2c7c245 csrf is enabled again 2019-11-25 12:19:42 +05:30
4d10e172cc left out deleted file by mistake 2019-11-25 12:19:42 +05:30
9140885398 updated schema initilization script and switched back to jdbc based initialization 2019-11-25 12:19:42 +05:30
5a79c7026e application now resets online flag and num_sessions to 0 on startup 2019-11-25 12:19:42 +05:30
2564fdca35 Switched to persistent storage of active users. This solves the issue of tracking active user with multiple sessions 2019-11-25 12:19:42 +05:30
d1a2d58411 proper formatting for last active 2019-11-25 12:19:42 +05:30
74396ccd68 added thymeleaf template logic for active users in chat page 2019-11-25 12:19:42 +05:30
14843cd8f0 Done logic for getting online users and their last active time 2019-11-25 12:19:42 +05:30
3692608d8f added user change passphrase page and some general adjustments 2019-11-25 12:19:41 +05:30
febfaeec9a Changes to error model and login/registration cards
Added json property names to error model
Switched to grid offset instead of changing card width using CSS
2019-11-25 12:19:41 +05:30
d3ac95e8f4 Implemented primitive rest validation.
A better implementation to be done later.
2019-11-25 12:19:41 +05:30
97091123b9 Revert "Architecutre improvements and validation"
This reverts commit c1fd68901e6defa3f88359e65707eea0a8ceb3eb.
2019-11-25 12:19:41 +05:30
acbacc8fa8 Architecture improvements and validation
Improved system architecture and added sample regex validation to
registration
2019-11-25 12:19:41 +05:30
4607ae5e17 Architecutre improvements and validation
Improved system architecture and added sample regex validation to
registration
2019-11-25 12:19:41 +05:30
2625cf7865 add bootstrap to web front-end 2019-11-25 12:19:41 +05:30
bb9a4c9b3a Added database initialization logic 2019-11-25 12:19:41 +05:30
3ea46b584a zz 2019-11-25 12:19:41 +05:30
d8ce654df6 Finished a working prototype with E2E 2019-10-02 21:49:52 +05:30
216c429e1f encrypted message test 2019-09-27 20:42:27 +05:30
b65237d9eb many changes 2019-09-27 12:07:55 +05:30
128e330342 First commit 2019-09-17 13:03:38 +05:30