Skip to content

Commit

Permalink
Merge pull request #498 from LukasLohoff/fix-keycloak-hook
Browse files Browse the repository at this point in the history
fix: adjust onKeycloakEvent listener condition
  • Loading branch information
LukasLohoff committed Apr 19, 2022
2 parents 0c9cbc2 + 97f6c2c commit 386c1ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class KeycloakEventListener {
@EventListener
public void onKeycloakEvent(KeycloakEvent event) {
switch (event.getEventType()) {
case USER_CREATED, USER_GROUP_MEMBERSHIP_CHANGED -> userService.findOrCreateByKeyCloakId(event.getKeycloakId());
case USER_CREATED -> userService.findOrCreateByKeyCloakId(event.getKeycloakId());
case GROUP_CREATED -> groupService.findOrCreateByKeycloakId(event.getKeycloakId());
}
}
Expand Down

0 comments on commit 386c1ab

Please sign in to comment.