UNPKG

@rxap/n8n-utilities

Version:

This package provides utility functions and classes for n8n nodes, including custom authentication methods (Bearer Auth, Oauth2 Proxy Auth, Base URL), a decorator for capturing execution errors, and base classes for creating nodes from OpenAPI specificati

36 lines 1.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Oauth2ProxyAuth = void 0; class Oauth2ProxyAuth { constructor() { this.name = 'oauth2ProxyAuth'; this.displayName = 'Oauth2 Proxy Auth'; this.genericAuth = true; this.icon = 'node:n8n-nodes-base.httpRequest'; this.properties = [ { displayName: 'User ID', name: 'userId', type: 'string', default: 'n8n-client', }, { displayName: 'Organization ID', name: 'organizationId', type: 'string', default: 'ea5dc87a-9c4a-48d4-8a0a-ccea1474498f', } ]; this.authenticate = { type: 'generic', properties: { headers: { 'x-auth-request-user': '={{$credentials.userId}}', 'x-organization': '={{$credentials.organizationId}}', }, }, }; } } exports.Oauth2ProxyAuth = Oauth2ProxyAuth; //# sourceMappingURL=Oauth2ProxyAuth.credentials.js.map