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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.1 KiB
TypeScript
Raw Normal View History

import type { ICredentialType, INodeProperties } from 'n8n-workflow';
2020-07-31 13:26:23 -07:00
2020-08-03 01:06:46 -07:00
export class PhilipsHueOAuth2Api implements ICredentialType {
name = 'philipsHueOAuth2Api';
extends = ['oAuth2Api'];
2020-07-31 13:26:23 -07:00
displayName = 'PhilipHue OAuth2 API';
documentationUrl = 'philipsHue';
properties: INodeProperties[] = [
{
displayName: 'Grant Type',
name: 'grantType',
type: 'hidden',
default: 'authorizationCode',
},
{
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
];
}