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,37 @@
import type { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';
export class TrellixEpoApi implements ICredentialType {
name = 'trellixEpoApi';
displayName = 'Trellix (McAfee) ePolicy Orchestrator API';
icon = 'file:icons/Trellix.svg';
properties: INodeProperties[] = [
{
displayName: 'Username',
name: 'username',
type: 'string',
default: '',
required: true,
},
{
displayName: 'Password',
name: 'password',
type: 'string',
typeOptions: { password: true },
default: '',
required: true,
},
];
authenticate: IAuthenticateGeneric = {
type: 'generic',
properties: {
auth: {
username: '={{$credentials.username}}',
password: '={{$credentials.password}}',
},
},
};
}