mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17:28 -08:00
⚡ Add private key and passphrase fields to SFTP credentials (#1136)
* ⚡ Add private key and passphrase fields to credentials * ⚡ Small improvement
This commit is contained in:
parent
f3874b5ed9
commit
042028fb5f
|
@ -38,5 +38,27 @@ export class Sftp implements ICredentialType {
|
||||||
},
|
},
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Private Key',
|
||||||
|
name: 'privateKey',
|
||||||
|
required: true,
|
||||||
|
type: 'string' as NodePropertyTypes,
|
||||||
|
typeOptions: {
|
||||||
|
alwaysOpenEditWindow: true,
|
||||||
|
},
|
||||||
|
default: '',
|
||||||
|
description: 'String that contains a private key for either key-based or hostbased user authentication (OpenSSH format).',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Passphrase',
|
||||||
|
name: 'passphrase',
|
||||||
|
typeOptions: {
|
||||||
|
password: true,
|
||||||
|
},
|
||||||
|
required: true,
|
||||||
|
type: 'string' as NodePropertyTypes,
|
||||||
|
default: '',
|
||||||
|
description: 'For an encrypted private key, this is the passphrase used to decrypt it',
|
||||||
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -288,6 +288,8 @@ export class Ftp implements INodeType {
|
||||||
port: credentials.port as number,
|
port: credentials.port as number,
|
||||||
username: credentials.username as string,
|
username: credentials.username as string,
|
||||||
password: credentials.password as string,
|
password: credentials.password as string,
|
||||||
|
privateKey: credentials.privateKey as string | undefined,
|
||||||
|
passphrase: credentials.passphrase as string | undefined,
|
||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue