]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-17645 Add field in SonarQube UI to enable SCIM feature
authorAurelien Poscia <aurelien.poscia@sonarsource.com>
Thu, 8 Dec 2022 15:07:42 +0000 (16:07 +0100)
committersonartech <sonartech@sonarsource.com>
Fri, 9 Dec 2022 20:03:10 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/settings/components/authentication/SamlAuthentication.tsx
server/sonar-web/src/main/js/apps/settings/components/authentication/SamlFormField.tsx

index 520b4dc2a5345ae86c5a8d20630ca5e476d6d96c..1b8a1ad6973ad2e53768f4b534ada1b8d6b387a8 100644 (file)
@@ -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<
index f54d5db9e1c093574c98a261435eb7644945904e..40296a908c50952ac229e54e9cdbbbc6c83385b4 100644 (file)
@@ -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 && (