n8n-nodes-base
Version:
Base nodes of n8n
47 lines • 1.33 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MispApi = void 0;
class MispApi {
name = 'mispApi';
displayName = 'MISP API';
documentationUrl = 'misp';
properties = [
{
displayName: 'API Key',
name: 'apiKey',
type: 'string',
typeOptions: { password: true },
default: '',
},
{
displayName: 'Base URL',
name: 'baseUrl',
type: 'string',
default: '',
},
{
displayName: 'Allow Unauthorized Certificates',
name: 'allowUnauthorizedCerts',
type: 'boolean',
description: 'Whether to connect even if SSL certificate validation is not possible',
default: false,
},
];
authenticate = {
type: 'generic',
properties: {
headers: {
Authorization: '={{$credentials.apiKey}}',
},
},
};
test = {
request: {
baseURL: '={{$credentials.baseUrl.replace(new RegExp("/$"), "")}}',
url: '/tags',
skipSslCertificateValidation: '={{$credentials.allowUnauthorizedCerts}}',
},
};
}
exports.MispApi = MispApi;
//# sourceMappingURL=MispApi.credentials.js.map