Commit 2e337eff authored by Mahesh Maney R's avatar Mahesh Maney R
Browse files

adding email instaed of username to save user info <ManeyMR>.

Showing with 3 additions and 2 deletions
+3 -2
......@@ -73,8 +73,9 @@ public class KeycloakUserUpdater {
ArrayNode credentials = (ArrayNode)requestBody.get("credentials");
logger.info("credentials[] {}", credentials);
if(!credentials.isEmpty() && !(credentials.get(0).get("value").asText().isBlank())) {
logger.info("userName : {}, credentials.get(0).get(\"value\").asText() : {}",userName, credentials.get(0).get("value").asText());
String value = keycloakUserCredentialPersister.persistUserInfo(userName, credentials.get(0).get("value").asText());
String email = requestBody.get("email").asText();
logger.info("email : {}, credentials.get(0).get(\"value\").asText() : {}",email, credentials.get(0).get("value").asText());
String value = keycloakUserCredentialPersister.persistUserInfo(email, credentials.get(0).get("value").asText());
logger.info("persistUserInfo response {}", value);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment