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,36 @@
import type { IAuthenticateGeneric, ICredentialType, INodeProperties } from 'n8n-workflow';
export class CiscoMerakiApi implements ICredentialType {
name = 'ciscoMerakiApi';
displayName = 'Cisco Meraki API';
icon = 'file:icons/Cisco.svg';
properties: INodeProperties[] = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
required: true,
default: '',
},
];
authenticate: IAuthenticateGeneric = {
type: 'generic',
properties: {
headers: {
'X-Cisco-Meraki-API-Key': '={{$credentials.apiKey}}',
},
},
};
// test: ICredentialTestRequest = {
// request: {
// baseURL: 'https://api.meraki.com/api/v1',
// url: '/organizations',
// },
// };
}