aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAurelien Poscia <aurelien.poscia@sonarsource.com>2022-12-08 16:07:42 +0100
committersonartech <sonartech@sonarsource.com>2022-12-09 20:03:10 +0000
commit3977d9f2ca593a6c800cb35fc5ccc5854936a153 (patch)
tree6c91205da937cc5fb76edc03589c074dd7000120 /server
parent64b25b0613feb16070ada8e02c64761ac0d0f6d2 (diff)
downloadsonarqube-3977d9f2ca593a6c800cb35fc5ccc5854936a153.tar.gz
sonarqube-3977d9f2ca593a6c800cb35fc5ccc5854936a153.zip
SONAR-17645 Add field in SonarQube UI to enable SCIM feature
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/authentication/SamlAuthentication.tsx1
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/authentication/SamlFormField.tsx4
2 files changed, 2 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/settings/components/authentication/SamlAuthentication.tsx b/server/sonar-web/src/main/js/apps/settings/components/authentication/SamlAuthentication.tsx
index 520b4dc2a53..1b8a1ad6973 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/authentication/SamlAuthentication.tsx
+++ b/server/sonar-web/src/main/js/apps/settings/components/authentication/SamlAuthentication.tsx
@@ -59,6 +59,7 @@ const OPTIONAL_FIELDS = [
'sonar.auth.saml.signature.enabled',
'sonar.auth.saml.user.email',
'sonar.auth.saml.group.name',
+ 'sonar.scim.enabled',
];
class SamlAuthentication extends React.PureComponent<
diff --git a/server/sonar-web/src/main/js/apps/settings/components/authentication/SamlFormField.tsx b/server/sonar-web/src/main/js/apps/settings/components/authentication/SamlFormField.tsx
index f54d5db9e1c..40296a908c5 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/authentication/SamlFormField.tsx
+++ b/server/sonar-web/src/main/js/apps/settings/components/authentication/SamlFormField.tsx
@@ -35,8 +35,6 @@ interface SamlToggleFieldProps {
error: { [key: string]: string };
}
-const SAML_SIGNATURE_FIELD = 'sonar.auth.saml.signature.enabled';
-
export default function SamlFormField(props: SamlToggleFieldProps) {
const { mandatory = false, definition, settingValue, showSecuredTextArea = true, error } = props;
@@ -65,7 +63,7 @@ export default function SamlFormField(props: SamlToggleFieldProps) {
definition={definition}
settingValue={settingValue}
toggleDisabled={false}
- onChange={(val) => props.onFieldChange(SAML_SIGNATURE_FIELD, val)}
+ onChange={(value) => props.onFieldChange(definition.key, value)}
/>
)}
{definition.type === undefined && (