Commit Graph
84 Commits
Author SHA1 Message Date
Axel Uhl 2b098c7f83 switched remaining projects from JavaSE-1.7 to JavaSE-1.8
Change-Id: Ib053b405b79edaaf5183e155690f02b08f7eef95
2019-04-05 22:40:16 +02:00
Axel Uhl 9ee2893878 it's not a DuplicateKeyException but a MongoCommandException that is being thrown upon duplicate keys
Change-Id: Ida31ff84ed657916961953ac470c970cbf2220a2
2019-02-18 10:47:59 +01:00
Axel Uhl c6168e1135 obtain SETTINGS collection only once, creating a UNIQUE index over the username if possible, warning if not
Change-Id: I07a0f8bbe878648dc8cde6a28f4726f69a04580f
2019-02-06 16:06:32 +01:00
Axel Uhl 878e5d9dd2 upgraded the MongoDB driver to version 3.6.4; upgraded target platform
Change-Id: I621d4af6d3a3b0bcbf70310f731153cacfecebfc
2019-01-25 16:46:46 +01:00
Axel Uhl 7b1e360e51 added com.sap.sse.security.persistence also to java/pom.xml
Change-Id: Ied205bf7b23ca491548a2dcadf2a75b1edb89526
2019-01-15 18:20:03 +01:00
Axel Uhl 9a08f9c9e9 fixed various DB handling after Mongo 3.x upgrade; made *.security.replication.test an eclipse-test-plugin
Change-Id: Ibbe80a15b6adce78c457a81009d387dbd74d9186
2018-12-11 12:56:50 +01:00
Axel Uhl 914be75f91 warning-free workspace after upgrading to MongoDB 3.x APIs, eliminating deprecation issues
Change-Id: I9773b899e140871f5fa4b865ca6d2116bf73c642
2018-12-10 23:22:20 +01:00
Axel Uhl d8c2cf8cd3 upgraded target platform to newer MongoDB driver from org.eclipse.orbit;
A 3.x driver is required to connect to Microsoft Azure Cosmos. Upgrading
the target platform accordingly requires further upgrades, including Hamcrest
and JUnit libraries. This, in turn, deprecates or obsoletes numerous APIs,
parts of which that caused compilation *errors* I've replaced by their new
counterparts. Several more warnings still remain and need to be tackled by
replacing the usages to their new counterparts.
2018-12-10 03:00:59 +01:00
Axel Uhl 230a5a4c1c fixed typo in comment; added logging
Change-Id: Ic4308772f659d80617509c68c5f5781b8bead657
2018-10-11 13:43:59 +02:00
Axel Uhl bd90f921dd added Automatic-Module-Name headers to satisfy Oxygen.3 Java9 warnings rule 2018-03-24 01:45:37 +01:00
Axel Uhl 680f3a0441 added UserStore.hasUsers for efficient check whether there are none
Change-Id: Ifacc9c84bda961399b866e860757e8ebe0d78b71
2017-11-29 14:09:35 +01:00
Steffen Schaefer fdc3d5138c Setting a preference to null now removes the entry 2017-06-26 14:39:41 +02:00
Vladislav Chumak e75e50b1fd bug3529 Fixed user preferences cleaning for tests 2017-04-09 23:28:45 +02:00
Axel Uhl dbb40a05af Mongo 3.x no longer allows for null values as index ordering; replaced by 1 consistently
Change-Id: Ie3accf61d8eb88d5dc1caa0a0eb7fbda8b61d31b
2017-03-18 00:02:07 +01:00
Axel Uhl 8805bfb7eb fix proposal for bug 3840: replicating string-based preference change to avoid serializing preference objects with operation
Change-Id: I69a04306be43263e07f0e87ef669328900c70623
2016-07-30 17:54:28 +02:00
Axel Uhl 51b3c7190d made preference objects and their converters transient
Change-Id: I9f892f69e736131fb0d8bcb197a06372339e41b8
2016-07-21 13:37:16 +02:00
Steffen Schaefer 8e59b48216 Listeners aren't cleared anymore when clearing UserStore, but all
listeners are informed about removal of all preference objects.
2016-07-19 11:24:20 +02:00
Axel Uhl aa748878c1 clear the UserStoreImpl.listeners map in the UserStoreImpl.clear() method; fresh replicas should start with no listeners
Change-Id: I43211599b4d0369efba5cde426975475d563b891
2016-07-15 15:22:10 +02:00
Steffen Schaefer 5847b016ce Extended User to have an optional locale field to store the user's
language preference
2016-07-13 13:26:34 +02:00
Steffen Schaefer f47557de60 Added more JavaDocs 2016-07-12 10:45:08 +02:00
Steffen Schaefer 6449fe9297 Using NamedReentrantReadWriteLock instead of synchronization 2016-07-12 10:43:37 +02:00
Axel Uhl 3a8c053d1a use locking in PreferenceObjectBasedNotificationSet
Change-Id: I911fb9e4c303e8ae828f109345ca04aaa0c0d2f3
2016-07-12 09:36:29 +02:00
Steffen Schaefer e89c05bf01 PreferenceConverters can now be registered through OSGi service registry 2016-07-11 12:38:14 +02:00
Steffen Schaefer 3695b9cc10 Renamed some internal methods in UserStoreImpl to make more clear what's
happening
2016-07-11 12:36:26 +02:00
Steffen Schaefer 516a889c02 Added the possibility to remove PreferenceConverters from the UserStore 2016-07-11 12:35:28 +02:00
Steffen Schaefer b5524aefde JavaDoc / Code quality improvements 2016-07-11 09:38:17 +02:00
Steffen Schaefer e876d456a4 Preferences are now removed if a user is deleted 2016-07-07 10:49:24 +02:00
Steffen Schaefer 5004b250f0 Added a null check to prevent a NullPointerException to be thrown in
getUserByEmail if there is no user for a given email address
2016-07-07 10:49:17 +02:00
Steffen Schaefer c80bca9c87 Renamed methods to make more clear what they are used for 2016-07-06 09:45:21 +02:00
Steffen Schaefer cd5ca3741e It's now possible to get notified on preference object changes in
UserStore
2016-07-05 10:40:20 +02:00
Steffen Schaefer d77f6adb43 Initial implementation to register PreferenceConverters on the UserStore
and set/get preference objects that are being held in memory for fast
access
2016-07-04 17:07:01 +02:00
Axel Uhl 63ecb41944 fixed bug3599, tests now pass
Change-Id: Ifffdc82c0b8705440de635c48ce4b90571cb0096
2016-04-14 19:04:14 +02:00
Axel Uhl 8781eefbeb added second fialing test case for user store
Change-Id: Iaaa502113b89689aac04267fe5ea158230d5cee4
2016-04-14 18:41:33 +02:00
Axel Uhl 44c37b4c32 fixed SecurityResourceTest, now removing existing token when requiring creation of new one
Change-Id: I1e8a5be5f7659ba0bff2841bed02033139de1b8a
2016-03-02 10:59:54 +01:00
Axel Uhl 524abc1124 secure the RaceLog POST servlet, requiring LEADERBOARD.UPDATE; fixed auth token loading in UserStore;
added removeAccessToken with remove_access_token end point on SecurityResource, available for ADMIN role
and owner
2016-03-02 00:09:54 +01:00
Axel Uhl 4e0c3f7073 providing update feature for additional User properties in SecurityService and UserManagementService
Change-Id: I46a4c2c58e35595dc20b85575a27c1cfbd639592
2016-01-12 09:28:23 +01:00
Axel Uhl fb3f74d297 added fields fullName and company to User
Change-Id: I831b2a229c29081aab8f79174caa8d1900303b67
2016-01-12 09:13:01 +01:00
Axel Uhl 21f76c6dc4 obsolete old bearer access token when a new one is obtained for the subject 2015-02-25 14:36:01 +01:00
Axel Uhl 971b9e0d1e added tests for REST API permission checking 2015-02-13 14:40:50 +01:00
Axel Uhl 0800cab32a started with access token / REST security; test case read 2015-02-13 11:43:50 +01:00
Axel Uhl a1a8166b08 fixed MongoDB bundle reference in launch configurations after target platform upgrade 2015-02-13 10:18:32 +01:00
Axel Uhl 98d5235b47 upgraded all Mongo-using bundles to 2.13.0 driver 2015-02-12 16:00:15 +01:00
Fredrik Teschke af0856653e removed calls to deprecated mongo-API methods (result of mongo-api upgrade) 2015-02-11 12:58:48 +01:00
Fredrik Teschke 5471a6b8fc update manifests and pom to new mongodb driver version 2015-02-11 12:55:32 +01:00
Axel Uhl 619a801f3e solution for bug 2427: permissions are now supported on User and related objects, including persistence and test case 2014-12-01 15:25:47 +01:00
Axel Uhl 64f64f661d removed the no longer needed clear... methods from the security MongoObjectFactory again 2014-11-25 14:02:21 +01:00
Axel Uhl 8ebab4ca50 basic authentication and session replication is in place; no longer use EhCache as it seems very tricky to replicate; still issues with details of session authentication replication 2014-11-24 17:56:43 +01:00
Axel Uhl f4a56842bb replicate only the storeUser operation from SecurityServiceImpl for now; it covers all changes to any User object; added tests 2014-11-21 21:15:53 +01:00
Axel Uhl 772d5477bc added com.sap.sse.security.common which bundles security-related stuff that is shared by Java7 GWT projects as well as Java8 backend projects 2014-11-21 17:59:00 +01:00
Axel Uhl 799fe16ed6 Shiro's SimpleByteSource isn't serializable. Changed to byte[] instead. Test frame for security replication seems to work now. 2014-11-21 11:21:44 +01:00