diff --git a/src/main/java/edu/stanford/protege/webprotegeusermanagement/commands/dto/UsersQueryRequest.java b/src/main/java/edu/stanford/protege/webprotegeusermanagement/commands/dto/UsersQueryRequest.java index e2614e2..d1cabae 100644 --- a/src/main/java/edu/stanford/protege/webprotegeusermanagement/commands/dto/UsersQueryRequest.java +++ b/src/main/java/edu/stanford/protege/webprotegeusermanagement/commands/dto/UsersQueryRequest.java @@ -1,8 +1,10 @@ package edu.stanford.protege.webprotegeusermanagement.commands.dto; +import com.fasterxml.jackson.annotation.*; import edu.stanford.protege.webprotege.common.Request; -public record UsersQueryRequest(String userName) implements Request { +@JsonTypeName(UsersQueryRequest.CHANNEL) +public record UsersQueryRequest(@JsonProperty("completionText") String userName) implements Request { public final static String CHANNEL = "webprotege.usersquery.QueryUsers"; diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index cba2d4d..7e77cb0 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -21,8 +21,8 @@ webprotege: keycloak: serverUrl: http://webprotege-local.edu/auth realmName: webprotege - clientId: admin-cli - clientSecret: C1MYgWgr9qpLsnNnPS3nbFNf5nGDe5H7 + clientId: user-management + clientSecret: d4c1e0f1-599f-411c-bc1b-0fafb05424ac username: admin password: password