@@ -3,11 +3,9 @@ import Bowser from 'bowser';
3
3
import type { IUserManagementSettings , FrontendSettings } from '@n8n/api-types' ;
4
4
5
5
import * as eventsApi from '@n8n/rest-api-client/api/events' ;
6
- import * as ldapApi from '@n8n/rest-api-client/api/ldap' ;
7
6
import * as settingsApi from '@n8n/rest-api-client/api/settings' ;
8
7
import * as promptsApi from '@n8n/rest-api-client/api/prompts' ;
9
8
import { testHealthEndpoint } from '@/api/templates' ;
10
- import type { LdapConfig } from '@n8n/rest-api-client/api/ldap' ;
11
9
import {
12
10
INSECURE_CONNECTION_WARNING ,
13
11
LOCAL_STORAGE_EXPERIMENTAL_MIN_ZOOM_NODE_SETTINGS_IN_CANVAS ,
@@ -44,9 +42,6 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => {
44
42
enabled : false ,
45
43
} ,
46
44
} ) ;
47
- const ldap = ref ( { loginLabel : '' , loginEnabled : false } ) ;
48
- const saml = ref ( { loginLabel : '' , loginEnabled : false } ) ;
49
- const oidc = ref ( { loginEnabled : false , loginUrl : '' , callbackUrl : '' } ) ;
50
45
const mfa = ref ( { enabled : false } ) ;
51
46
const folders = ref ( { enabled : false } ) ;
52
47
@@ -90,16 +85,6 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => {
90
85
91
86
const publicApiPath = computed ( ( ) => api . value . path ) ;
92
87
93
- const isLdapLoginEnabled = computed ( ( ) => ldap . value . loginEnabled ) ;
94
-
95
- const ldapLoginLabel = computed ( ( ) => ldap . value . loginLabel ) ;
96
-
97
- const isSamlLoginEnabled = computed ( ( ) => saml . value . loginEnabled ) ;
98
-
99
- const isOidcLoginEnabled = computed ( ( ) => oidc . value . loginEnabled ) ;
100
-
101
- const oidcCallBackUrl = computed ( ( ) => oidc . value . callbackUrl ) ;
102
-
103
88
const isAiAssistantEnabled = computed ( ( ) => settings . value . aiAssistant ?. enabled ) ;
104
89
105
90
const isAskAiEnabled = computed ( ( ) => settings . value . askAi ?. enabled ) ;
@@ -182,14 +167,6 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => {
182
167
( ) => settings . value . workflowCallerPolicyDefaultOption ,
183
168
) ;
184
169
185
- const isDefaultAuthenticationSaml = computed (
186
- ( ) => userManagement . value . authenticationMethod === UserManagementAuthenticationMethod . Saml ,
187
- ) ;
188
-
189
- const isDefaultAuthenticationOidc = computed (
190
- ( ) => userManagement . value . authenticationMethod === UserManagementAuthenticationMethod . Oidc ,
191
- ) ;
192
-
193
170
const permanentlyDismissedBanners = computed ( ( ) => settings . value . banners ?. dismissed ?? [ ] ) ;
194
171
195
172
const isBelowUserQuota = computed (
@@ -210,21 +187,6 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => {
210
187
! ! settings . value . userManagement . showSetupOnFirstLoad ;
211
188
}
212
189
api . value = settings . value . publicApi ;
213
- if ( settings . value . sso ?. ldap ) {
214
- ldap . value . loginEnabled = settings . value . sso . ldap . loginEnabled ;
215
- ldap . value . loginLabel = settings . value . sso . ldap . loginLabel ;
216
- }
217
- if ( settings . value . sso ?. saml ) {
218
- saml . value . loginEnabled = settings . value . sso . saml . loginEnabled ;
219
- saml . value . loginLabel = settings . value . sso . saml . loginLabel ;
220
- }
221
-
222
- if ( settings . value . sso ?. oidc ) {
223
- oidc . value . loginEnabled = settings . value . sso . oidc . loginEnabled ;
224
- oidc . value . loginUrl = settings . value . sso . oidc . loginUrl || '' ;
225
- oidc . value . callbackUrl = settings . value . sso . oidc . callbackUrl || '' ;
226
- }
227
-
228
190
mfa . value . enabled = settings . value . mfa ?. enabled ;
229
191
folders . value . enabled = settings . value . folders ?. enabled ;
230
192
@@ -364,31 +326,6 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => {
364
326
templatesEndpointHealthy . value = true ;
365
327
} ;
366
328
367
- const getLdapConfig = async ( ) => {
368
- const rootStore = useRootStore ( ) ;
369
- return await ldapApi . getLdapConfig ( rootStore . restApiContext ) ;
370
- } ;
371
-
372
- const getLdapSynchronizations = async ( pagination : { page : number } ) => {
373
- const rootStore = useRootStore ( ) ;
374
- return await ldapApi . getLdapSynchronizations ( rootStore . restApiContext , pagination ) ;
375
- } ;
376
-
377
- const testLdapConnection = async ( ) => {
378
- const rootStore = useRootStore ( ) ;
379
- return await ldapApi . testLdapConnection ( rootStore . restApiContext ) ;
380
- } ;
381
-
382
- const updateLdapConfig = async ( ldapConfig : LdapConfig ) => {
383
- const rootStore = useRootStore ( ) ;
384
- return await ldapApi . updateLdapConfig ( rootStore . restApiContext , ldapConfig ) ;
385
- } ;
386
-
387
- const runLdapSync = async ( data : IDataObject ) => {
388
- const rootStore = useRootStore ( ) ;
389
- return await ldapApi . runLdapSync ( rootStore . restApiContext , data ) ;
390
- } ;
391
-
392
329
const getTimezones = async ( ) : Promise < IDataObject > => {
393
330
const rootStore = useRootStore ( ) ;
394
331
return await makeRestApiRequest ( rootStore . restApiContext , 'GET' , '/options/timezones' ) ;
@@ -412,8 +349,6 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => {
412
349
userManagement,
413
350
templatesEndpointHealthy,
414
351
api,
415
- ldap,
416
- saml,
417
352
mfa,
418
353
isDocker,
419
354
isDevRelease,
@@ -432,10 +367,6 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => {
432
367
isPreviewMode,
433
368
publicApiLatestVersion,
434
369
publicApiPath,
435
- isLdapLoginEnabled,
436
- ldapLoginLabel,
437
- isSamlLoginEnabled,
438
- isOidcLoginEnabled,
439
370
showSetupPage,
440
371
deploymentType,
441
372
isCloudDeployment,
@@ -459,8 +390,6 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => {
459
390
isQueueModeEnabled,
460
391
isMultiMain,
461
392
isWorkerViewAvailable,
462
- isDefaultAuthenticationSaml,
463
- isDefaultAuthenticationOidc,
464
393
workflowCallerPolicyDefaultOption,
465
394
permanentlyDismissedBanners,
466
395
isBelowUserQuota,
@@ -474,13 +403,7 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => {
474
403
aiCreditsQuota,
475
404
experimental__minZoomNodeSettingsInCanvas,
476
405
partialExecutionVersion,
477
- oidcCallBackUrl,
478
406
reset,
479
- testLdapConnection,
480
- getLdapConfig,
481
- getLdapSynchronizations,
482
- updateLdapConfig,
483
- runLdapSync,
484
407
getTimezones,
485
408
testTemplatesEndpoint,
486
409
submitContactInfo,
0 commit comments