Skip to content

Commit

Permalink
swap back to obj Mapper
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Crawford <[email protected]>
  • Loading branch information
stephen-crawford committed May 2, 2023
1 parent 9961f53 commit dc33ffa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/opensearch/security/user/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

package org.opensearch.security.user;

import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
Expand Down Expand Up @@ -221,7 +222,7 @@ public String generateAuthToken(String accountName) throws IOException {

String authToken = null;
try {
DefaultObjectMapper mapper = new DefaultObjectMapper();
ObjectMapper mapper = new ObjectMapper();
JsonNode accountDetails = mapper.readTree(internalUsersConfiguration.getCEntry(accountName).toString());
final ObjectNode contentAsNode = (ObjectNode) accountDetails;
SecurityJsonNode securityJsonNode = new SecurityJsonNode(contentAsNode);
Expand Down

0 comments on commit dc33ffa

Please sign in to comment.