feat: add vikunja credentials
This commit is contained in:
parent
32b11bfdf0
commit
96cb7f4400
|
@ -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}}'
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue