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

53 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',
2020-07-31 13:26:23 -07:00
default: 'https://api.meethue.com/oauth2/auth',
},
{
displayName: 'Access Token URL',
name: 'accessTokenUrl',
type: 'hidden',
2020-07-31 13:26:23 -07:00
default: 'https://api.meethue.com/oauth2/token',
},
{
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',
description: 'Method of authentication.',
},
2020-07-31 13:26:23 -07:00
];
}