mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
✨ Add Bitwarden node (#1401)
* Update package.json * Add first implementation of credentials * Add Bitwarden SVG file * Add first implementation of generic functions * Add scaffolding for resources and operations * Fill in events, groups and members * Fill in organizations and policies * Add collection description * Clean up credentials params * Implement collection:update * Add event description * Add group description * Add member description * Complete all descriptions * Remove OAuth2 from credentials name * Prevent excessive access token retrievals * Complete collection:update * Refactor getAll operations * Add group:getAll * Add group:create * Add group:update * Add group:updateMembers * Add user:create * Add member:updateGroups * Remove organization resource * Remove policy resource * Add member:update * Reposition divider comments * Refactor resource loaders * Document generic functions * Refactor returnAll and limit * Introduce minor improvements * ⚡ Improvements * ⚡ Minor improvements * ⚡ Remove not needed code Co-authored-by: ricardo <ricardoespinoza105@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
56
packages/nodes-base/credentials/BitwardenApi.credentials.ts
Normal file
56
packages/nodes-base/credentials/BitwardenApi.credentials.ts
Normal file
@@ -0,0 +1,56 @@
|
||||
import {
|
||||
ICredentialType,
|
||||
NodePropertyTypes,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
// https://bitwarden.com/help/article/public-api/#authentication
|
||||
|
||||
export class BitwardenApi implements ICredentialType {
|
||||
name = 'bitwardenApi';
|
||||
displayName = 'Bitwarden API';
|
||||
documentationUrl = 'bitwarden';
|
||||
properties = [
|
||||
{
|
||||
displayName: 'Client ID',
|
||||
name: 'clientId',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Client Secret',
|
||||
name: 'clientSecret',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Environment',
|
||||
name: 'environment',
|
||||
type: 'options' as NodePropertyTypes,
|
||||
default: 'cloudHosted',
|
||||
options: [
|
||||
{
|
||||
name: 'Cloud-hosted',
|
||||
value: 'cloudHosted',
|
||||
},
|
||||
{
|
||||
name: 'Self-hosted',
|
||||
value: 'selfHosted',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
displayName: 'Self-hosted domain',
|
||||
name: 'domain',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
placeholder: 'https://www.mydomain.com',
|
||||
displayOptions: {
|
||||
show: {
|
||||
environment: [
|
||||
'selfHosted',
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user