feat: add vikunja credentials

This commit is contained in:
kolaente 2023-10-23 11:10:07 +02:00
parent 32b11bfdf0
commit 96cb7f4400
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 27 additions and 0 deletions

View File

@ -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}}'
}
},
};
}