Add enforcedAuthType setting (#6564)

This commit is contained in:
christine betts
2025-09-03 15:33:37 -07:00
committed by GitHub
parent 5cc23f0cd8
commit 987f08a619
10 changed files with 194 additions and 18 deletions
+1
View File
@@ -85,6 +85,7 @@ const MIGRATION_MAP: Record<string, string> = {
excludeMCPServers: 'mcp.excluded',
folderTrust: 'security.folderTrust.enabled',
selectedAuthType: 'security.auth.selectedType',
enforcedAuthType: 'security.auth.enforcedType',
useExternalAuth: 'security.auth.useExternal',
autoConfigureMaxOldSpaceSize: 'advanced.autoConfigureMemory',
dnsResolutionOrder: 'advanced.dnsResolutionOrder',
+10
View File
@@ -737,6 +737,16 @@ export const SETTINGS_SCHEMA = {
description: 'The currently selected authentication type.',
showInDialog: false,
},
enforcedType: {
type: 'string',
label: 'Enforced Auth Type',
category: 'Advanced',
requiresRestart: true,
default: undefined as AuthType | undefined,
description:
'The required auth type. If this does not match the selected auth type, the user will be prompted to re-authenticate.',
showInDialog: false,
},
useExternal: {
type: 'boolean',
label: 'Use External Auth',