mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(HTTP Request Node): New http request generic custom auth credential (#5798)
This commit is contained in:
@@ -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: '',
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user