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:
@@ -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',
|
||||
// },
|
||||
// };
|
||||
}
|
||||
Reference in New Issue
Block a user