Skip to content

Commit

Permalink
fixes initializations of content provider
Browse files Browse the repository at this point in the history
  • Loading branch information
tjuerge committed Mar 30, 2024
1 parent 72e6678 commit 069aa44
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import org.keycloak.provider.ProviderConfigurationBuilder;
import org.keycloak.storage.ldap.LDAPStorageProvider;
import org.keycloak.storage.ldap.mappers.AbstractLDAPStorageMapperFactory;
import org.keycloak.storage.ldap.mappers.membership.group.GroupMapperConfig;
import org.keycloak.storage.ldap.mappers.LDAPStorageMapper;
import org.vaulttec.keycloak.ldap.mappers.confluence.content.ConfluenceContentCache;
import org.vaulttec.keycloak.ldap.mappers.confluence.content.ConfluenceContentConfig;
import org.vaulttec.keycloak.ldap.mappers.confluence.content.ConfluenceContentProvider;
Expand Down Expand Up @@ -38,8 +38,18 @@ public String getHelpText() {
}

@Override
public void onCreate(KeycloakSession session, RealmModel realm, ComponentModel model) {
public LDAPStorageMapper create(KeycloakSession session, ComponentModel model) {
this.contentProvider = new ConfluenceContentProvider(session, model);
return super.create(session, model);
}

@Override
public void onCreate(KeycloakSession session, RealmModel realm, ComponentModel model) {
getContentCache(true);
}

@Override
public void onUpdate(KeycloakSession session, RealmModel realm, ComponentModel oldModel, ComponentModel newModel) {
getContentCache(true);
}

Expand Down

0 comments on commit 069aa44

Please sign in to comment.