Simplify Zendesk credentials

This commit is contained in:
Jan Oberhauser 2021-01-15 09:47:39 +01:00
parent 9496505232
commit 6981438a38

View file

@ -28,16 +28,16 @@ export class ZendeskOAuth2Api implements ICredentialType {
{ {
displayName: 'Authorization URL', displayName: 'Authorization URL',
name: 'authUrl', name: 'authUrl',
type: 'string' as NodePropertyTypes, type: 'hidden' as NodePropertyTypes,
default: 'https://{SUBDOMAIN_HERE}.zendesk.com/oauth/authorizations/new', default: '=https://{{$parameter["subdomain"]}}.zendesk.com/oauth/authorizations/new',
description: 'URL to get authorization code. Replace {SUBDOMAIN_HERE} with your subdomain.', description: 'URL to get authorization code. Replace {SUBDOMAIN_HERE} with your subdomain.',
required: true, required: true,
}, },
{ {
displayName: 'Access Token URL', displayName: 'Access Token URL',
name: 'accessTokenUrl', name: 'accessTokenUrl',
type: 'string' as NodePropertyTypes, type: 'hidden' as NodePropertyTypes,
default: 'https://{SUBDOMAIN_HERE}.zendesk.com/oauth/tokens', default: '=https://{{$parameter["subdomain"]}}.zendesk.com/oauth/tokens',
description: 'URL to get access token. Replace {SUBDOMAIN_HERE} with your subdomain.', description: 'URL to get access token. Replace {SUBDOMAIN_HERE} with your subdomain.',
required: true, required: true,
}, },