n8n-nodes-arubaclearpass
Version:
n8n community node for Aruba ClearPass API integration with comprehensive identity, policy, and enforcement profile management
70 lines (69 loc) • 2.42 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClearPassApi = void 0;
class ClearPassApi {
constructor() {
this.name = 'clearPassApi';
this.displayName = 'ClearPass API';
this.documentationUrl = 'https://www.arubanetworks.com/products/network-management-operations/clearpass/';
// Properties shown in the credential dialog
this.properties = [
{
displayName: 'URL',
name: 'url',
type: 'string',
default: 'https://clearpass.example.com',
required: true,
description: 'The URL of the ClearPass server (without trailing slash)',
},
{
displayName: 'Authentication Type',
name: 'authType',
type: 'options',
options: [
{
name: 'Client ID & Secret',
value: 'clientCredentials',
},
{
name: 'OAuth2',
value: 'oauth2',
},
],
default: 'clientCredentials',
required: true,
},
{
displayName: 'Client ID',
name: 'clientId',
type: 'string',
default: '',
required: true,
description: 'The client ID for accessing the ClearPass API',
},
{
displayName: 'Client Secret',
name: 'clientSecret',
type: 'string',
typeOptions: { password: true },
default: '',
required: true,
description: 'The client secret for accessing the ClearPass API',
},
{
displayName: 'Access Token URL',
name: 'accessTokenUrl',
type: 'string',
default: 'https://clearpass.example.com/api/oauth',
required: true,
displayOptions: {
show: {
authType: ['oauth2'],
},
},
description: 'The URL to get the access token (OAuth2 only)',
},
];
}
}
exports.ClearPassApi = ClearPassApi;