forked from Jordan-Hall/n8n
-
Notifications
You must be signed in to change notification settings - Fork 0
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): New http request generic custom auth credent…
…ial (n8n-io#5798)
- Loading branch information
Showing
4 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
packages/nodes-base/credentials/HttpCustomAuth.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,28 @@ | ||
/* eslint-disable n8n-nodes-base/cred-class-field-name-unsuffixed */ | ||
/* eslint-disable n8n-nodes-base/cred-class-name-unsuffixed */ | ||
import type { ICredentialType, INodeProperties } from 'n8n-workflow'; | ||
|
||
export class HttpCustomAuth implements ICredentialType { | ||
name = 'httpCustomAuth'; | ||
|
||
displayName = 'Custom Auth'; | ||
|
||
documentationUrl = 'httpRequest'; | ||
|
||
genericAuth = true; | ||
|
||
icon = 'node:n8n-nodes-base.httpRequest'; | ||
|
||
properties: INodeProperties[] = [ | ||
{ | ||
displayName: 'JSON', | ||
name: 'json', | ||
type: 'json', | ||
required: true, | ||
description: 'Use json to specify authentication values for headers, body and qs.', | ||
placeholder: | ||
'{ "headers": { "key" : "value" }, "body": { "key": "value" }, "qs": { "key": "value" } }', | ||
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