mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(Splunk Node): Overhaul (#9813)
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
||||
import type {
|
||||
IAuthenticateGeneric,
|
||||
ICredentialTestRequest,
|
||||
ICredentialType,
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export class SplunkApi implements ICredentialType {
|
||||
name = 'splunkApi';
|
||||
@@ -31,4 +36,21 @@ export class SplunkApi implements ICredentialType {
|
||||
default: false,
|
||||
},
|
||||
];
|
||||
|
||||
authenticate: IAuthenticateGeneric = {
|
||||
type: 'generic',
|
||||
properties: {
|
||||
headers: {
|
||||
Authorization: '=Bearer {{$credentials?.authToken}}',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
test: ICredentialTestRequest = {
|
||||
request: {
|
||||
url: '={{$credentials.baseUrl}}/services/alerts/fired_alerts',
|
||||
method: 'GET',
|
||||
skipSslCertificateValidation: '={{$credentials?.allowUnauthorizedCerts}}',
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user