aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-auth-saml
diff options
context:
space:
mode:
authorMatteo Mara <matteo.mara@sonarsource.com>2022-09-23 13:47:01 +0200
committersonartech <sonartech@sonarsource.com>2022-09-23 20:02:51 +0000
commit611d91e567dcb09da1f9aa1e8d7b42bb4d0427b8 (patch)
treea95a5c9b2a0a533e76139a373439dd67b0070a66 /server/sonar-auth-saml
parentcbf550bcd161e7f7c660ae8a457cb0c8baa31b4e (diff)
downloadsonarqube-611d91e567dcb09da1f9aa1e8d7b42bb4d0427b8.tar.gz
sonarqube-611d91e567dcb09da1f9aa1e8d7b42bb4d0427b8.zip
SONAR-17296 improve the handlign of the SAML Response attributes in the configuration testign page
Diffstat (limited to 'server/sonar-auth-saml')
-rw-r--r--server/sonar-auth-saml/src/main/resources/samlAuthResult.html3
-rw-r--r--server/sonar-auth-saml/src/test/resources/samlAuthResultComplete.html3
-rw-r--r--server/sonar-auth-saml/src/test/resources/samlAuthResultEmpty.html3
3 files changed, 6 insertions, 3 deletions
diff --git a/server/sonar-auth-saml/src/main/resources/samlAuthResult.html b/server/sonar-auth-saml/src/main/resources/samlAuthResult.html
index c6c0108802d..398266b2d29 100644
--- a/server/sonar-auth-saml/src/main/resources/samlAuthResult.html
+++ b/server/sonar-auth-saml/src/main/resources/samlAuthResult.html
@@ -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);
diff --git a/server/sonar-auth-saml/src/test/resources/samlAuthResultComplete.html b/server/sonar-auth-saml/src/test/resources/samlAuthResultComplete.html
index fd3b9ac729a..f12552ec361 100644
--- a/server/sonar-auth-saml/src/test/resources/samlAuthResultComplete.html
+++ b/server/sonar-auth-saml/src/test/resources/samlAuthResultComplete.html
@@ -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);
diff --git a/server/sonar-auth-saml/src/test/resources/samlAuthResultEmpty.html b/server/sonar-auth-saml/src/test/resources/samlAuthResultEmpty.html
index febbb26026f..6ae670910bd 100644
--- a/server/sonar-auth-saml/src/test/resources/samlAuthResultEmpty.html
+++ b/server/sonar-auth-saml/src/test/resources/samlAuthResultEmpty.html
@@ -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);