Files
alighasami 3d5eaf9445
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
first commit
2026-03-17 16:22:57 +03:30

73 lines
1.3 KiB
TypeScript

import type { 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',
typeOptions: { password: true },
default: '',
required: true,
},
{
displayName: 'Consumer Secret',
name: 'consumerSecret',
type: 'string',
typeOptions: { password: true },
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,
},
];
}