Add a setting to disable auth mode validation on startup (#5358)

This commit is contained in:
Billy Biggs
2025-08-01 11:49:03 -07:00
committed by GitHub
parent a2db3d1b38
commit cab60a38a1
6 changed files with 143 additions and 18 deletions

View File

@@ -186,7 +186,10 @@ export async function main() {
: [];
const sandboxConfig = config.getSandbox();
if (sandboxConfig) {
if (settings.merged.selectedAuthType) {
if (
settings.merged.selectedAuthType &&
!settings.merged.useExternalAuth
) {
// Validate authentication here because the sandbox will interfere with the Oauth2 web redirect.
try {
const err = validateAuthMethod(settings.merged.selectedAuthType);
@@ -344,6 +347,7 @@ async function loadNonInteractiveConfig(
return await validateNonInteractiveAuth(
settings.merged.selectedAuthType,
settings.merged.useExternalAuth,
finalConfig,
);
}