feat(Snowflake Node): Add support for Key-Pair authentication (#14833)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-05-13 10:43:54 +02:00
committed by GitHub
parent c02696241b
commit 4302c5f474
4 changed files with 137 additions and 8 deletions

View File

@@ -30,11 +30,33 @@ export class Snowflake implements ICredentialType {
description:
'The default virtual warehouse to use for the session after connecting. Used for performing queries, loading data, etc.',
},
{
displayName: 'Authentication',
name: 'authentication',
type: 'options',
options: [
{
name: 'Password',
value: 'password',
},
{
name: 'Key-Pair',
value: 'keyPair',
},
],
default: 'password',
description: 'The way to authenticate with Snowflake',
},
{
displayName: 'Username',
name: 'username',
type: 'string',
default: '',
displayOptions: {
show: {
authentication: ['password'],
},
},
},
{
displayName: 'Password',
@@ -44,6 +66,28 @@ export class Snowflake implements ICredentialType {
password: true,
},
default: '',
displayOptions: {
show: {
authentication: ['password'],
},
},
},
{
displayName: 'Private Key',
name: 'privateKey',
type: 'string',
typeOptions: {
password: true,
rows: 4,
},
default: '',
required: true,
displayOptions: {
show: {
authentication: ['keyPair'],
},
},
description: 'Private PEM key for Key-pair authentication with Snowflake',
},
{
displayName: 'Schema',