feat(core): Credentials for popular SecOps services, Part 1 (#6775)

This commit is contained in:
Michael Kret
2023-07-31 11:26:38 +03:00
committed by GitHub
parent 50b0dc21fd
commit 11567f946b
56 changed files with 1724 additions and 4 deletions

View File

@@ -0,0 +1,29 @@
import type { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';
export class HybridAnalysisApi implements ICredentialType {
name = 'hybridAnalysisApi';
displayName = 'Hybrid Analysis API';
icon = 'file:icons/Hybrid.png';
properties: INodeProperties[] = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
required: true,
default: '',
},
];
authenticate: IAuthenticateGeneric = {
type: 'generic',
properties: {
headers: {
'api-key': '={{$credentials.apiKey}}',
},
},
};
}