mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-12 05:17:28 -08:00
re-added basicAuth for authentication
This commit is contained in:
parent
48765b7db6
commit
c1b4c570fd
|
@ -62,7 +62,7 @@ export async function pipedriveApiRequest(this: IHookFunctions | IExecuteFunctio
|
|||
let responseData;
|
||||
|
||||
try {
|
||||
if (authenticationMethod === 'accessToken') {
|
||||
if (authenticationMethod === 'basicAuth') {
|
||||
|
||||
const credentials = this.getCredentials('pipedriveApi');
|
||||
if (credentials === undefined) {
|
||||
|
|
|
@ -64,7 +64,7 @@ export class Pipedrive implements INodeType {
|
|||
displayOptions: {
|
||||
show: {
|
||||
authentication: [
|
||||
'accessToken',
|
||||
'basicAuth',
|
||||
],
|
||||
},
|
||||
},
|
||||
|
@ -88,16 +88,20 @@ export class Pipedrive implements INodeType {
|
|||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Access Token',
|
||||
value: 'accessToken',
|
||||
name: 'Basic Auth',
|
||||
value: 'basicAuth'
|
||||
},
|
||||
{
|
||||
name: 'OAuth2',
|
||||
value: 'oAuth2',
|
||||
},
|
||||
{
|
||||
name: 'None',
|
||||
value: 'none',
|
||||
},
|
||||
],
|
||||
default: 'accessToken',
|
||||
description: 'The resource to operate on.',
|
||||
default: 'basicAuth',
|
||||
description: 'Method of authentication.',
|
||||
},
|
||||
{
|
||||
displayName: 'Resource',
|
||||
|
|
|
@ -55,7 +55,7 @@ export class PipedriveTrigger implements INodeType {
|
|||
displayOptions: {
|
||||
show: {
|
||||
authentication: [
|
||||
'accessToken',
|
||||
'basicAuth',
|
||||
],
|
||||
},
|
||||
},
|
||||
|
@ -72,6 +72,7 @@ export class PipedriveTrigger implements INodeType {
|
|||
},
|
||||
},
|
||||
],
|
||||
],
|
||||
webhooks: [
|
||||
{
|
||||
name: 'default',
|
||||
|
@ -87,17 +88,20 @@ export class PipedriveTrigger implements INodeType {
|
|||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Access Token',
|
||||
value: 'accessToken'
|
||||
name: 'Basic Auth',
|
||||
value: 'basicAuth'
|
||||
},
|
||||
{
|
||||
name: 'OAuth2',
|
||||
value: 'oAuth2'
|
||||
value: 'oAuth2',
|
||||
},
|
||||
{
|
||||
name: 'None',
|
||||
value: 'none',
|
||||
},
|
||||
|
||||
],
|
||||
default: 'accessToken',
|
||||
description: 'If authentication should be activated for the webhook (makes it more scure).',
|
||||
default: 'basicAuth',
|
||||
description: 'Method of authentication.',
|
||||
},
|
||||
{
|
||||
displayName: 'Action',
|
||||
|
|
Loading…
Reference in a new issue