Commit graph

85 commits

Author SHA1 Message Date
0cac71c4a1 Rollback on ScimPropagationException 2024-07-19 10:59:57 +02:00
81d9f5424c Rollback on exception 2024-07-19 10:59:57 +02:00
5aa9410bac Improve logging 2024-07-19 10:59:57 +02:00
080cc8c273 Revert "Type "type" column in Hibernate"
This reverts commit 0bf5aa1a76aeece12b71b14bedc672850671a794.
2024-07-19 10:53:52 +02:00
55730a8021 Remove static ScimDispatcher map 2024-07-19 10:53:52 +02:00
Brendan Le Ny
1e46d584c8 Type "type" column in Hibernate 2024-07-19 10:53:52 +02:00
Brendan Le Ny
3009edf101 Remove pointless exception encapsulation 2024-07-19 10:53:52 +02:00
Brendan Le Ny
c793c138a3 Fix concurrent modification exception with dispatcher caching
keycloak-1  | 2024-06-21 08:32:21,335 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (executor-thread-9) Uncaught server error: java.util.ConcurrentModificationException
keycloak-1  | 	at java.base/java.util.HashMap.computeIfAbsent(HashMap.java:1221)
keycloak-1  | 	at sh.libre.scim.core.ScimDispatcher.createForSession(ScimDispatcher.java:31)
keycloak-1  | 	at sh.libre.scim.event.ScimEventListenerProvider.<init>(ScimEventListenerProvider.java:49)
keycloak-1  | 	at sh.libre.scim.event.ScimEventListenerProviderFactory.create(ScimEventListenerProviderFactory.java:13)
keycloak-1  | 	at sh.libre.scim.event.ScimEventListenerProviderFactory.create(ScimEventListenerProviderFactory.java:9)
keycloak-1  | 	at org.keycloak.services.DefaultKeycloakSession.getProvider(DefaultKeycloakSession.java:195)
2024-07-19 10:53:52 +02:00
Brendan Le Ny
0b24401def Fix NPE when defining retry name for creation 2024-07-19 10:53:52 +02:00
bee8d1f39b Renaming ScimStorageProviderFactory 2024-07-19 10:53:52 +02:00
2e992dad44 Refactor Scim Event listener 2024-07-19 10:53:52 +02:00
f81001503d Remove Adapter and refactor ScimClient 2024-07-19 10:53:52 +02:00
2ded3f7236 Update SCIM clients when configuration changes and improve ScimDispatcher lifecycle 2024-07-19 10:53:52 +02:00
633291d401 Avoid recreating ScimClients at every change propagation : code refactoring 2024-07-19 10:53:41 +02:00
f00130d37a Simplify ScimStorageProvider 2024-07-19 10:53:41 +02:00
764767185e Simply ScimEventListener code 2024-07-19 10:53:41 +02:00
5976031ac6 ScimDispatcher simplification : split User and Group client class to simplify usage 2024-07-19 10:53:41 +02:00
9a45e9c30f Simplfy code by splitting UserScimClient and GroupSclient - basic UserScimClient 2024-07-19 10:53:28 +02:00
3ef6c81e98 Wire local sonar and extract method for findById 2024-07-19 10:53:28 +02:00
Alex Morel
154bb34980 Update .gitlab-ci.yml to wire sonar 2024-07-19 10:53:14 +02:00
Brendan Le Ny
04f011b5bf Remove pointless if 2024-06-17 14:38:42 +02:00
Brendan Le Ny
676cddc0d9 Move field init to initializer, does not depend on constructor parameters 2024-06-17 10:45:31 +02:00
Brendan Le Ny
db3de0d933 Use try with resource 2024-06-17 10:34:45 +02:00
Brendan Le Ny
10ff5787f0 Check emptyness not size 2024-06-17 10:11:16 +02:00
Brendan Le Ny
f2464bbc00 Rename variable 2024-06-12 17:40:01 +02:00
Brendan Le Ny
2ed6f1a16d Improve some method names 2024-06-12 17:00:22 +02:00
Brendan Le Ny
b6d3c20fe1 Split constructor code from factory code of ScimClient 2024-06-12 16:40:47 +02:00
Brendan Le Ny
84f1af036d Clean imports 2024-06-12 16:11:37 +02:00
Brendan Le Ny
c008818c77 Type constant 2024-06-12 16:09:59 +02:00
Brendan Le Ny
208659d42e Remove string comparaison using '==' 2024-06-12 15:38:47 +02:00
Brendan Le Ny
5c2b20d4e0 Remove useless anonymous subclass creation 2024-06-12 15:35:51 +02:00
Brendan Le Ny
7d42a4e1d2 Remove pointless use of StringUtils 2024-06-12 15:34:22 +02:00
Brendan Le Ny
0c9dd3595e Remove var keyword 2024-06-12 15:29:44 +02:00
Brendan Le Ny
33bc30667d Use switch statements 2024-06-12 15:20:26 +02:00
Brendan Le Ny
26dc5edba2 Use diamond operator when possible 2024-06-12 14:49:28 +02:00
Brendan Le Ny
2782beafe6 Fix some identations and code conventions 2024-06-12 14:47:45 +02:00
Brendan Le Ny
000b47a581 Fix some strings 2024-06-12 14:22:31 +02:00
Brendan Le Ny
62eff08fcf Factorize "true" string 2024-06-12 14:20:29 +02:00
182824a3b4
feat: update to keycloak 23 + varrious fixes 2024-02-06 12:13:30 +01:00
Marc Portabella
7163d2a0f0
chore: switch scim sdk 2024-01-12 17:07:11 +01:00
19e23a44f4 Merge branch 'change-license' into 'main'
Update LICENSE in order to PR upstream

See merge request libre.sh/scim/keycloak-scim!1
2023-01-05 13:16:35 +00:00
Pierre Ozoux
6a3028251f Update LICENSE in order to PR upstream
https://github.com/keycloak/keycloak/issues/13484
2022-10-29 12:08:34 +00:00
30e1df99cc
fix: handle emty username & email during sync 2022-10-19 16:59:27 +02:00
bd39b29422
fix: don't create entity with empty username 2022-10-19 16:51:59 +02:00
6649cc430d
fix: don't print expected exception 2022-10-19 16:49:51 +02:00
1e3ae07e72
add scim-skip attribute 2022-09-23 17:34:09 +02:00
ad8be9cbb7
user displayname fall's back to username 2022-09-22 11:58:55 +02:00
e21c04c533
remove too verbose logging 2022-09-22 11:23:38 +02:00
06e64a8cd9
fix listener on nested group 2022-09-22 11:02:49 +02:00
a7977de788
update groups on user creation 2022-09-22 10:50:12 +02:00