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

49 lines
1,020 B
TypeScript
Raw Normal View History

import { ICredentialType, INodeProperties } from 'n8n-workflow';
2020-06-16 02:45:47 -07:00
export class DriftOAuth2Api implements ICredentialType {
name = 'driftOAuth2Api';
extends = ['oAuth2Api'];
2020-06-16 02:45:47 -07:00
displayName = 'Drift OAuth2 API';
documentationUrl = 'drift';
properties: INodeProperties[] = [
{
displayName: 'Grant Type',
name: 'grantType',
type: 'hidden',
default: 'authorizationCode',
},
2020-06-16 02:45:47 -07:00
{
displayName: 'Authorization URL',
name: 'authUrl',
type: 'hidden',
2020-06-25 19:29:04 -07:00
default: 'https://dev.drift.com/authorize',
2020-06-16 02:45:47 -07:00
required: true,
},
{
displayName: 'Access Token URL',
name: 'accessTokenUrl',
type: 'hidden',
2020-06-16 02:45:47 -07:00
default: 'https://driftapi.com/oauth2/token',
required: true,
},
{
displayName: 'Auth URI Query Parameters',
name: 'authQueryParameters',
type: 'hidden',
2020-06-16 02:45:47 -07:00
default: '',
},
2020-06-25 19:29:04 -07:00
{
displayName: 'Scope',
name: 'scope',
type: 'hidden',
2020-06-25 19:29:04 -07:00
default: '',
},
2020-06-16 02:45:47 -07:00
{
displayName: 'Authentication',
name: 'authentication',
type: 'hidden',
2020-06-16 02:45:47 -07:00
default: 'body',
},
];
}