Browse Source

SONAR-17296 improve the handlign of the SAML Response attributes in the configuration testign page

tags/9.7.0.61563
Matteo Mara 1 year ago
parent
commit
611d91e567

+ 2
- 1
server/sonar-auth-saml/src/main/resources/samlAuthResult.html View File

@@ -76,6 +76,7 @@
padding: 4px 24px 4px 8px;
vertical-align: top;
font-family: "Courier New", Courier, monospace;
white-space: pre-line;
}

#content {
@@ -154,7 +155,7 @@

const valueNode = document.createElement("td");
// wrap in array, to handle single values as well
valueNode.innerHTML = [].concat(obj[key]).join("<br />");
valueNode.textContent = [].concat(obj[key]).join("\r\n");
row.appendChild(valueNode);

tbody.appendChild(row);

+ 2
- 1
server/sonar-auth-saml/src/test/resources/samlAuthResultComplete.html View File

@@ -76,6 +76,7 @@
padding: 4px 24px 4px 8px;
vertical-align: top;
font-family: "Courier New", Courier, monospace;
white-space: pre-line;
}

#content {
@@ -154,7 +155,7 @@

const valueNode = document.createElement("td");
// wrap in array, to handle single values as well
valueNode.innerHTML = [].concat(obj[key]).join("<br />");
valueNode.textContent = [].concat(obj[key]).join("\r\n");
row.appendChild(valueNode);

tbody.appendChild(row);

+ 2
- 1
server/sonar-auth-saml/src/test/resources/samlAuthResultEmpty.html View File

@@ -76,6 +76,7 @@
padding: 4px 24px 4px 8px;
vertical-align: top;
font-family: "Courier New", Courier, monospace;
white-space: pre-line;
}

#content {
@@ -154,7 +155,7 @@

const valueNode = document.createElement("td");
// wrap in array, to handle single values as well
valueNode.innerHTML = [].concat(obj[key]).join("<br />");
valueNode.textContent = [].concat(obj[key]).join("\r\n");
row.appendChild(valueNode);

tbody.appendChild(row);

Loading…
Cancel
Save