From cae1d2054c622dbd5e707e54bbaccccccd171f01 Mon Sep 17 00:00:00 2001 From: Paul Stoker Date: Wed, 11 Sep 2024 10:51:52 +0200 Subject: [PATCH] feat: add more authentication options SQL Server now has 8 options for `Authentication` as per https://learn.microsoft.com/en-us/sql/connect/ado-net/sql/azure-active-directory-authentication?view=sql-server-ver15#setting-microsoft-entra-authentication --- src/parser/sql-connection-string.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/parser/sql-connection-string.ts b/src/parser/sql-connection-string.ts index a749901..6f0227a 100644 --- a/src/parser/sql-connection-string.ts +++ b/src/parser/sql-connection-string.ts @@ -48,7 +48,16 @@ export const SCHEMA: SchemaDefinition = { }, 'Authentication': { type: SchemaTypes.STRING, - allowedValues: ['Active Directory Integrated', 'Active Directory Password', 'Sql Password'], + allowedValues: [ + 'Active Directory Default', + 'Active Directory Device Code Flow', + 'Active Directory Integrated', + 'Active Directory Interactive', + 'Active Directory Managed Identity', + 'Active Directory Password', + 'Active Directory Service Principal', + 'SQL Password', + ], }, 'Column Encryption Setting': { type: SchemaTypes.STRING,