mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
✨ Oauth1 support and Twitter node
This commit is contained in:
63
packages/nodes-base/credentials/OAuth1Api.credentials.ts
Normal file
63
packages/nodes-base/credentials/OAuth1Api.credentials.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import {
|
||||
ICredentialType,
|
||||
NodePropertyTypes,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export class OAuth1Api implements ICredentialType {
|
||||
name = 'oAuth1Api';
|
||||
displayName = 'OAuth1 API';
|
||||
properties = [
|
||||
{
|
||||
displayName: 'Consumer Key',
|
||||
name: 'consumerKey',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
displayName: 'Consumer Secret',
|
||||
name: 'consumerSecret',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
displayName: 'Request Token URL',
|
||||
name: 'requestTokenUrl',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
displayName: 'Authorization URL',
|
||||
name: 'authUrl',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
displayName: 'Access Token URL',
|
||||
name: 'accessTokenUrl',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
displayName: 'Signature Method',
|
||||
name: 'signatureMethod',
|
||||
type: 'options' as NodePropertyTypes,
|
||||
options: [
|
||||
{
|
||||
name: 'HMAC-SHA1',
|
||||
value: 'HMAC-SHA1'
|
||||
},
|
||||
{
|
||||
name: 'HMAC-SHA256',
|
||||
value: 'HMAC-SHA256'
|
||||
},
|
||||
],
|
||||
default: '',
|
||||
required: true,
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user