Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: provide azure iam auth option in form for SQL Server (#15497)

h3n4lf510f53106c2
diff --git a/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue b/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue
index 0b34475afa..29b01f8f3a 100644
--- a/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue
+++ b/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue
@@ -12,7 +12,8 @@
v-if="
basicInfo.engine === Engine.MYSQL ||
basicInfo.engine === Engine.POSTGRES ||
- basicInfo.engine === Engine.COSMOSDB
+ basicInfo.engine === Engine.COSMOSDB ||
+ basicInfo.engine === Engine.MSSQL
"
class="mt-2 sm:col-span-3 sm:col-start-1"
>
@@ -27,6 +28,20 @@
</NRadio>
</NRadioGroup>
</template>
+ <template v-else-if="basicInfo.engine === Engine.MSSQL">
+ <NRadioGroup
+ v-model:value="dataSource.authenticationType"
+ class="textlabel"
+ :disabled="!allowEdit"
+ >
+ <NRadio :value="DataSource_AuthenticationType.PASSWORD">
+ {{ $t("instance.password-type.password") }}
+ </NRadio>
+ <NRadio :value="DataSource_AuthenticationType.AZURE_IAM">
+ {{ $t("instance.password-type.azure-iam") }}
+ </NRadio>
+ </NRadioGroup>
+ </template>
<template v-else>
<NRadioGroup
v-model:value="dataSource.authenticationType"