Skip to content

Commit

Permalink
Merge pull request #26 from systemli/Replace-LegacyUserCredentialManager
Browse files Browse the repository at this point in the history
Replace LegacyUserCredentialManager
  • Loading branch information
0x46616c6b authored May 22, 2024
2 parents ce601f7 + c89a594 commit 1ec1608
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@
<version>${version.keycloak}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-model-legacy</artifactId>
<version>${version.keycloak}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/systemli/keycloak/UserliUserAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -50,6 +50,6 @@ public Map<String, List<String>> getAttributes() {

@Override
public SubjectCredentialManager credentialManager() {
return new LegacyUserCredentialManager(session, realm, this);
return new UserCredentialManager(session, realm, this);
}
}

0 comments on commit 1ec1608

Please sign in to comment.