Skip to content

Commit

Permalink
feat(Splunk Node): Overhaul (n8n-io#9813)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-radency authored Jul 4, 2024
1 parent fbe4bca commit e5c3247
Show file tree
Hide file tree
Showing 49 changed files with 3,484 additions and 634 deletions.
24 changes: 23 additions & 1 deletion packages/nodes-base/credentials/SplunkApi.credentials.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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}}',
},
};
}
Loading

0 comments on commit e5c3247

Please sign in to comment.