update and clean Authentication code accordingly to code guidelines update.
add generic string to JsonNode method