private static CloudInfo parseCloudInfo()

in data/src/main/java/com/microsoft/azure/kusto/data/auth/CloudInfo.java [159:178]


    private static CloudInfo parseCloudInfo(String content) {
        try {
            ObjectMapper objectMapper = Utils.getObjectMapper();
            JsonNode jsonObject = objectMapper.readTree(content);
            JsonNode innerObject = jsonObject.has("AzureAD") ? jsonObject.get("AzureAD") : null;
            if (innerObject == null) {
                return DEFAULT_CLOUD;
            } else {
                return new CloudInfo(
                        innerObject.has("LoginMfaRequired") && innerObject.get("LoginMfaRequired").asBoolean(),
                        innerObject.has("LoginEndpoint") ? innerObject.get("LoginEndpoint").asText() : "",
                        innerObject.has("KustoClientAppId") ? innerObject.get("KustoClientAppId").asText() : "",
                        innerObject.has("KustoClientRedirectUri") ? innerObject.get("KustoClientRedirectUri").asText() : "",
                        innerObject.has("KustoServiceResourceId") ? innerObject.get("KustoServiceResourceId").asText() : "",
                        innerObject.has("FirstPartyAuthorityUrl") ? innerObject.get("FirstPartyAuthorityUrl").asText() : "");
            }
        } catch (JsonProcessingException e) {
            throw Exceptions.propagate(e);
        }
    }