diff --git a/pom.xml b/pom.xml index 4d96a48..67783a6 100644 --- a/pom.xml +++ b/pom.xml @@ -30,12 +30,6 @@ ${version.keycloak} provided - - org.keycloak - keycloak-model-legacy - ${version.keycloak} - provided - org.projectlombok lombok diff --git a/src/main/java/org/systemli/keycloak/UserliUserAdapter.java b/src/main/java/org/systemli/keycloak/UserliUserAdapter.java index 6662b4e..63a1816 100644 --- a/src/main/java/org/systemli/keycloak/UserliUserAdapter.java +++ b/src/main/java/org/systemli/keycloak/UserliUserAdapter.java @@ -5,7 +5,7 @@ import org.keycloak.common.util.MultivaluedHashMap; import org.keycloak.component.ComponentModel; -import org.keycloak.credential.LegacyUserCredentialManager; +import org.keycloak.credential.UserCredentialManager; import org.keycloak.models.KeycloakSession; import org.keycloak.models.RealmModel; import org.keycloak.models.SubjectCredentialManager; @@ -18,7 +18,7 @@ public class UserliUserAdapter extends AbstractUserAdapter { private final UserliUser user; public UserliUserAdapter(KeycloakSession session, RealmModel realm, ComponentModel storageProviderModel, - UserliUser user) { + UserliUser user) { super(session, realm, storageProviderModel); this.storageId = new StorageId(storageProviderModel.getId(), user.getId()); this.user = user; @@ -50,6 +50,6 @@ public Map> getAttributes() { @Override public SubjectCredentialManager credentialManager() { - return new LegacyUserCredentialManager(session, realm, this); + return new UserCredentialManager(session, realm, this); } }