mirror of
https://github.com/go-vikunja/n8n-vikunja-nodes
synced 2024-06-02 18:59:42 +00:00
feat: add vikunja credentials
This commit is contained in:
parent
32b11bfdf0
commit
96cb7f4400
27
credentials/VikunjaApi.credentials.ts
Normal file
27
credentials/VikunjaApi.credentials.ts
Normal 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}}'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user