mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat(core): Credentials for popular SecOps services, Part 1 (#6775)
This commit is contained in:
37
packages/nodes-base/credentials/ImpervaWafApi.credentials.ts
Normal file
37
packages/nodes-base/credentials/ImpervaWafApi.credentials.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
import type { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export class ImpervaWafApi implements ICredentialType {
|
||||
name = 'impervaWafApi';
|
||||
|
||||
displayName = 'Imperva WAF API';
|
||||
|
||||
icon = 'file:icons/Imperva.svg';
|
||||
|
||||
properties: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'API ID',
|
||||
name: 'apiID',
|
||||
type: 'string',
|
||||
default: '',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
displayName: 'API Key',
|
||||
name: 'apiKey',
|
||||
type: 'string',
|
||||
typeOptions: { password: true },
|
||||
default: '',
|
||||
required: true,
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
headers: {
|
||||
'x-API-Id': '={{$credentials.apiID}}',
|
||||
'x-API-Key': '={{$credentials.apiKey}}',
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user