mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
⚡ TLS option for MSSQL credentials type (#1132)
* Update MicrosoftSql.node.ts * Update MicrosoftSql.credentials.ts * Update MicrosoftSql.node.ts Add TLS encryption toggle to MSSQL credentials type and implement into the connection config object. This will help users connect to certain Azure MSSQL products and older MSSQL instances.
This commit is contained in:
parent
03a672300f
commit
10645c2ef5
|
@ -44,5 +44,11 @@ export class MicrosoftSql implements ICredentialType {
|
||||||
type: 'string' as NodePropertyTypes,
|
type: 'string' as NodePropertyTypes,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'TLS',
|
||||||
|
name: 'tls',
|
||||||
|
type: 'boolean' as NodePropertyTypes,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -217,6 +217,9 @@ export class MicrosoftSql implements INodeType {
|
||||||
user: credentials.user as string,
|
user: credentials.user as string,
|
||||||
password: credentials.password as string,
|
password: credentials.password as string,
|
||||||
domain: credentials.domain ? (credentials.domain as string) : undefined,
|
domain: credentials.domain ? (credentials.domain as string) : undefined,
|
||||||
|
options: {
|
||||||
|
encrypt: credentials.tls as boolean
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const pool = new mssql.ConnectionPool(config);
|
const pool = new mssql.ConnectionPool(config);
|
||||||
|
|
Loading…
Reference in a new issue