UNPKG

@netair-tech/n8n-nodes-tiny-erp-auth2

Version:

n8n custom node for Tiny ERP integration with OAuth2 authentication

70 lines 2.27 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TinyOAuth2Api = void 0; class TinyOAuth2Api { constructor() { this.name = 'tinyOAuth2Api'; this.extends = ['oAuth2Api']; this.displayName = 'Tiny ERP OAuth2 API'; this.documentationUrl = 'https://dev.tiny.com.br/docs'; this.properties = [ { displayName: 'Grant Type', name: 'grantType', type: 'hidden', default: 'authorizationCode', }, { displayName: 'Authorization URL', name: 'authUrl', type: 'hidden', default: 'https://accounts.tiny.com.br/realms/tiny/protocol/openid-connect/auth', required: true, }, { displayName: 'Access Token URL', name: 'accessTokenUrl', type: 'hidden', default: 'https://accounts.tiny.com.br/realms/tiny/protocol/openid-connect/token', required: true, }, { displayName: 'Scope', name: 'scope', type: 'hidden', default: 'openid', }, { displayName: 'Auth URI Query Parameters', name: 'authQueryParameters', type: 'hidden', default: 'response_type=code', }, { displayName: 'Authentication', name: 'authentication', type: 'hidden', default: 'body', }, { displayName: 'Client ID', name: 'clientId', type: 'string', default: '', required: true, }, { displayName: 'Client Secret', name: 'clientSecret', type: 'string', typeOptions: { password: true, }, default: '', required: true, }, ]; } } exports.TinyOAuth2Api = TinyOAuth2Api; //# sourceMappingURL=TinyOAuth2Api.credentials.js.map