-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(HTTP Request Node): Option to provide SSL Certificates in Http R…
…equest Node (#9125) Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
- Loading branch information
1 parent
0c9c240
commit 752b220
Showing
9 changed files
with
226 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
packages/nodes-base/credentials/HttpSslAuth.credentials.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* eslint-disable n8n-nodes-base/cred-class-name-unsuffixed */ | ||
/* eslint-disable n8n-nodes-base/cred-class-field-name-unsuffixed */ | ||
import type { ICredentialType, INodeProperties } from 'n8n-workflow'; | ||
|
||
export class HttpSslAuth implements ICredentialType { | ||
name = 'httpSslAuth'; | ||
|
||
displayName = 'SSL Certificates'; | ||
|
||
documentationUrl = 'httpRequest'; | ||
|
||
icon = 'node:n8n-nodes-base.httpRequest'; | ||
|
||
properties: INodeProperties[] = [ | ||
{ | ||
displayName: 'CA', | ||
name: 'ca', | ||
type: 'string', | ||
description: 'Certificate Authority certificate', | ||
typeOptions: { | ||
password: true, | ||
}, | ||
default: '', | ||
}, | ||
{ | ||
displayName: 'Certificate', | ||
name: 'cert', | ||
type: 'string', | ||
typeOptions: { | ||
password: true, | ||
}, | ||
default: '', | ||
}, | ||
{ | ||
displayName: 'Private Key', | ||
name: 'key', | ||
type: 'string', | ||
typeOptions: { | ||
password: true, | ||
}, | ||
default: '', | ||
}, | ||
{ | ||
displayName: 'Passphrase', | ||
name: 'passphrase', | ||
type: 'string', | ||
description: 'Optional passphrase for the private key, if the private key is encrypted', | ||
typeOptions: { | ||
password: true, | ||
}, | ||
default: '', | ||
}, | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export type HttpSslAuthCredentials = { | ||
ca?: string; | ||
cert?: string; | ||
key?: string; | ||
passphrase?: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters