mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-27 21:49:41 -08:00
57afd480ab
* Apply Prettier to all credentials * Fix quotes for lint * 👕 Remove `quotemark` rule * 👕 Run Prettier to take over quotes * ⬆️ Upgrade `eslint-plugin-n8n-nodes-base` * 📦 Update `package-lock.json` Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
67 lines
1.2 KiB
TypeScript
67 lines
1.2 KiB
TypeScript
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
|
|
export class OAuth1Api implements ICredentialType {
|
|
name = 'oAuth1Api';
|
|
displayName = 'OAuth1 API';
|
|
documentationUrl = 'httpRequest';
|
|
genericAuth = true;
|
|
properties: INodeProperties[] = [
|
|
{
|
|
displayName: 'Authorization URL',
|
|
name: 'authUrl',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Access Token URL',
|
|
name: 'accessTokenUrl',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Consumer Key',
|
|
name: 'consumerKey',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Consumer Secret',
|
|
name: 'consumerSecret',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Request Token URL',
|
|
name: 'requestTokenUrl',
|
|
type: 'string',
|
|
default: '',
|
|
required: true,
|
|
},
|
|
{
|
|
displayName: 'Signature Method',
|
|
name: 'signatureMethod',
|
|
type: 'options',
|
|
options: [
|
|
{
|
|
name: 'HMAC-SHA1',
|
|
value: 'HMAC-SHA1',
|
|
},
|
|
{
|
|
name: 'HMAC-SHA256',
|
|
value: 'HMAC-SHA256',
|
|
},
|
|
{
|
|
name: 'HMAC-SHA512',
|
|
value: 'HMAC-SHA512',
|
|
},
|
|
],
|
|
default: 'HMAC-SHA1',
|
|
required: true,
|
|
},
|
|
];
|
|
}
|