From 96cb7f44004f6cbf8cb5518b48da27e01db896fc Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 23 Oct 2023 11:10:07 +0200 Subject: [PATCH] feat: add vikunja credentials --- credentials/VikunjaApi.credentials.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 credentials/VikunjaApi.credentials.ts diff --git a/credentials/VikunjaApi.credentials.ts b/credentials/VikunjaApi.credentials.ts new file mode 100644 index 0000000..2781382 --- /dev/null +++ b/credentials/VikunjaApi.credentials.ts @@ -0,0 +1,27 @@ +import { + IAuthenticateGeneric, + ICredentialType, + INodeProperties, +} from 'n8n-workflow'; + +export class VikunjaApi implements ICredentialType { + name = 'vikunjaApi'; + displayName = 'Vikunja API'; + documentationUrl = 'https://vikunja.io/docs/'; + properties: INodeProperties[] = [ + { + displayName: 'API Key', + name: 'apiKey', + type: 'string', + default: '', + }, + ]; + authenticate: IAuthenticateGeneric = { + type: 'generic', + properties: { + headers: { + Authorization: 'Bearer ={{$credentials.apiKey}}' + } + }, + }; +}