aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/settings.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/api/settings.ts')
-rw-r--r--server/sonar-web/src/main/js/api/settings.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/api/settings.ts b/server/sonar-web/src/main/js/api/settings.ts
index 1d81865ddbe..d741cb0bc00 100644
--- a/server/sonar-web/src/main/js/api/settings.ts
+++ b/server/sonar-web/src/main/js/api/settings.ts
@@ -116,3 +116,17 @@ export function encryptValue(value: string): Promise<{ encryptedValue: string }>
export function getLoginMessage(): Promise<{ message: string }> {
return getJSON('/api/settings/login_message').catch(throwGlobalError);
}
+
+export function fetchIsScimEnabled(): Promise<boolean> {
+ return getJSON('/api/scim_management/status')
+ .then((r) => r.enabled)
+ .catch(throwGlobalError);
+}
+
+export function activateScim(): Promise<void> {
+ return post('/api/scim_management/enable').catch(throwGlobalError);
+}
+
+export function deactivateScim(): Promise<void> {
+ return post('/api/scim_management/disable').catch(throwGlobalError);
+}