Skip to content

Commit

Permalink
keycloak: add explicit FORCE mode to JQ filter mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
4rthem committed Jan 8, 2025
1 parent 1f5a1f4 commit 6bd1d5c
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public class JqGroupMapper extends AbstractIdentityProviderMapper {
protected static final List<ProviderConfigProperty> configProperties = new ArrayList<>();
public static final String JQ_FILTER = "jq_filter";

private static final Set<IdentityProviderSyncMode> IDENTITY_PROVIDER_SYNC_MODES = new HashSet<>(Arrays.asList(IdentityProviderSyncMode.values()));

static {
ProviderConfigProperty property;
property = new ProviderConfigProperty();
Expand Down Expand Up @@ -133,4 +135,9 @@ private GroupModel getGroup(RealmModel realm, String groupPath) {
public String getHelpText() {
return "Add User to a list of Groups coming from the result of the jq filter of the userinfo response.";
}

@Override
public boolean supportsSyncMode(IdentityProviderSyncMode syncMode) {
return IDENTITY_PROVIDER_SYNC_MODES.contains(syncMode);
}
}

0 comments on commit 6bd1d5c

Please sign in to comment.