n8n/packages/nodes-base/credentials/PhilipsHueOAuth2Api.credentials.ts

52 lines
1 KiB
TypeScript
Raw Normal View History

2020-07-31 13:26:23 -07:00
import {
ICredentialType,
INodeProperties,
2020-07-31 13:26:23 -07:00
} from 'n8n-workflow';
2020-08-03 01:06:46 -07:00
export class PhilipsHueOAuth2Api implements ICredentialType {
name = 'philipsHueOAuth2Api';
2020-07-31 13:26:23 -07:00
extends = [
'oAuth2Api',
];
displayName = 'PhilipHue OAuth2 API';
documentationUrl = 'philipsHue';
properties: INodeProperties[] = [
{
displayName: 'APP ID',
name: 'appId',
type: 'string',
default: '',
},
2020-07-31 13:26:23 -07:00
{
displayName: 'Authorization URL',
name: 'authUrl',
type: 'hidden',
default: 'https://api.meethue.com/v2/oauth2/authorize',
2020-07-31 13:26:23 -07:00
},
{
displayName: 'Access Token URL',
name: 'accessTokenUrl',
type: 'hidden',
default: 'https://api.meethue.com/v2/oauth2/token',
2020-07-31 13:26:23 -07:00
},
{
displayName: 'Auth URI Query Parameters',
name: 'authQueryParameters',
type: 'hidden',
default: '={{"appid="+$self["appId"]}}',
2020-07-31 13:26:23 -07:00
},
{
displayName: 'Scope',
name: 'scope',
type: 'hidden',
2020-07-31 13:26:23 -07:00
default: '',
},
{
displayName: 'Authentication',
name: 'authentication',
type: 'hidden',
default: 'header',
},
2020-07-31 13:26:23 -07:00
];
}