2023-06-29 06:27:02 -07:00
|
|
|
/* eslint-disable n8n-nodes-base/cred-class-field-name-unsuffixed */
|
|
|
|
/* eslint-disable n8n-nodes-base/cred-class-name-unsuffixed */
|
2024-06-06 04:34:30 -07:00
|
|
|
import type { ICredentialType, INodeProperties, Icon } from 'n8n-workflow';
|
2023-06-29 06:27:02 -07:00
|
|
|
|
|
|
|
export class HttpCustomAuth implements ICredentialType {
|
|
|
|
name = 'httpCustomAuth';
|
|
|
|
|
|
|
|
displayName = 'Custom Auth';
|
|
|
|
|
|
|
|
documentationUrl = 'httpRequest';
|
|
|
|
|
|
|
|
genericAuth = true;
|
|
|
|
|
2024-06-06 04:34:30 -07:00
|
|
|
icon: Icon = 'node:n8n-nodes-base.httpRequest';
|
2023-06-29 06:27:02 -07:00
|
|
|
|
|
|
|
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: '',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|