mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
600013a1ab
Co-authored-by: Giulio Andreini <g.andreini@gmail.com>
29 lines
774 B
TypeScript
29 lines
774 B
TypeScript
/* eslint-disable n8n-nodes-base/cred-class-field-name-unsuffixed */
|
|
/* eslint-disable n8n-nodes-base/cred-class-name-unsuffixed */
|
|
import type { ICredentialType, INodeProperties, Icon } from 'n8n-workflow';
|
|
|
|
export class HttpCustomAuth implements ICredentialType {
|
|
name = 'httpCustomAuth';
|
|
|
|
displayName = 'Custom Auth';
|
|
|
|
documentationUrl = 'httpRequest';
|
|
|
|
genericAuth = true;
|
|
|
|
icon: 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: '',
|
|
},
|
|
];
|
|
}
|