Add appid to PhillipsHue credentials (#953)

This commit is contained in:
Ricardo Espinoza
2020-09-14 02:11:14 -04:00
committed by GitHub
parent 6d8e9b1cd2
commit ae343b9f79

View File

@@ -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.',
},
];
}