diff --git a/packages/nodes-base/credentials/PhilipsHueOAuth2Api.credentials.ts b/packages/nodes-base/credentials/PhilipsHueOAuth2Api.credentials.ts index 9f8c6f90ad..f2f31fe582 100644 --- a/packages/nodes-base/credentials/PhilipsHueOAuth2Api.credentials.ts +++ b/packages/nodes-base/credentials/PhilipsHueOAuth2Api.credentials.ts @@ -11,6 +11,12 @@ export class PhilipsHueOAuth2Api implements ICredentialType { displayName = 'PhilipHue OAuth2 API'; documentationUrl = 'philipsHue'; properties = [ + { + displayName: 'APP ID', + name: 'appId', + type: 'string' as NodePropertyTypes, + default: '', + }, { displayName: 'Authorization URL', name: 'authUrl', @@ -27,7 +33,7 @@ export class PhilipsHueOAuth2Api implements ICredentialType { displayName: 'Auth URI Query Parameters', name: 'authQueryParameters', type: 'hidden' as NodePropertyTypes, - default: '', + default: '={{"appid="+$parameter["appId"]}}', }, { displayName: 'Scope', @@ -36,11 +42,11 @@ export class PhilipsHueOAuth2Api implements ICredentialType { default: '', }, { - displayName: 'Authentication', - name: 'authentication', - type: 'hidden' as NodePropertyTypes, - default: 'header', - description: 'Method of authentication.', - }, + displayName: 'Authentication', + name: 'authentication', + type: 'hidden' as NodePropertyTypes, + default: 'header', + description: 'Method of authentication.', + }, ]; }