fix: align detectAuthMethod priority with backend

This commit is contained in:
Ryan Crabbe 2026-03-07 11:04:01 -08:00
parent 536457fb31
commit 2390ab2c2c

View file

@ -17,8 +17,9 @@ import HashicorpVaultEmptyPlaceholder from "./HashicorpVaultEmptyPlaceholder";
const { Title, Text } = Typography;
function detectAuthMethod(values: Record<string, any>): string {
if (values.vault_token) return "Token";
if (values.approle_role_id || values.approle_secret_id) return "AppRole";
if (values.client_cert && values.client_key) return "TLS Certificate";
if (values.vault_token) return "Token";
return "None";
}