n8n-nodes-arubacentral
Version:
n8n community node for Aruba Central API integration with comprehensive monitoring, configuration, and management capabilities
74 lines (73 loc) • 2.57 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ArubaCentralOAuth2Api = void 0;
// credentials/ArubaCentralOAuth2Api.credentials.ts
class ArubaCentralOAuth2Api {
constructor() {
this.name = 'ArubaCentralOAuth2Api';
this.displayName = 'Aruba Central OAuth2 API';
this.documentationUrl = 'arubacentral';
// These properties are essential for proper token storage in n8n
// We're keeping our custom flow but declaring we store tokens like OAuth2
this.__defaults = {
tokenType: 'Bearer',
tokenExpiredStatusCode: 401,
tokenPropertyName: 'access_token',
};
this.properties = [
{
displayName: 'Base URL',
name: 'baseUrl',
type: 'string',
default: '',
placeholder: 'https://apigw-prod2.central.arubanetworks.com',
required: true,
description: 'The domain base URL for HPE Aruba Networking Central API Gateway.',
},
{
displayName: 'Client ID',
name: 'clientId',
type: 'string',
default: '',
required: true,
description: 'The OAuth client ID from API Gateway.',
},
{
displayName: 'Client Secret',
name: 'clientSecret',
type: 'string',
default: '',
required: true,
description: 'The OAuth client secret from API Gateway.',
},
{
displayName: 'Username',
name: 'username',
type: 'string',
default: '',
required: true,
description: 'Username for HPE Aruba Networking Central.',
},
{
displayName: 'Password',
name: 'password',
type: 'string',
typeOptions: {
password: true,
},
default: '',
required: true,
description: '',
},
{
displayName: 'Customer ID',
name: 'customerId',
type: 'string',
default: '',
required: true,
description: 'HPE Aruba Networking Central Customer ID.',
},
];
}
}
exports.ArubaCentralOAuth2Api = ArubaCentralOAuth2Api;