@zerodot/bitwarden 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +54 -16
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,25 +1,63 @@
|
|
|
1
1
|
# @zerodot/bitwarden
|
|
2
2
|
|
|
3
|
-
Bitwarden
|
|
3
|
+
<img src="https://raw.githubusercontent.com/zerodot-io/nodes/main/packages/bitwarden/bitwarden.svg" alt="Bitwarden logo" width="48" height="48">
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Manage collections, members, groups, and organization events in Bitwarden. The node calls the Bitwarden Public API for an organization. It lists and gets collections, lists members and groups, and lists organization events. Connect with the client ID and client secret of an organization API key.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Install
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
- Optional **API Base URL** for self-hosted or EU cloud instances. Defaults to `https://api.bitwarden.com`.
|
|
11
|
-
- Optional **Identity Base URL** for self-hosted or EU cloud instances. Defaults to `https://identity.bitwarden.com`.
|
|
9
|
+
In zerodot, go to **System > Nodes** and install **Bitwarden**.
|
|
12
10
|
|
|
13
|
-
|
|
11
|
+
Manual: install `@zerodot/bitwarden` where the web app and the worker run, and add it to `ZERODOT_NODE_PACKAGES`.
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
- **Member**: List
|
|
17
|
-
- **Group**: List
|
|
18
|
-
- **Event**: List
|
|
13
|
+
## Nodes
|
|
19
14
|
|
|
20
|
-
|
|
15
|
+
### Bitwarden (`bitwarden.api`)
|
|
21
16
|
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
- Event
|
|
17
|
+
- **Collection**: list, get
|
|
18
|
+
- **Member**: list
|
|
19
|
+
- **Group**: list
|
|
20
|
+
- **Event**: list
|
|
21
|
+
|
|
22
|
+
Each operation sends one request to the Bitwarden Public API. The node has no trigger.
|
|
23
|
+
|
|
24
|
+
**Collection.** **List** returns one page of collections. **Get** returns one collection. Set **Collection ID** for Get. The ID is required. It is encoded in the URL path.
|
|
25
|
+
|
|
26
|
+
**Member and group.** **List** returns one page of members or groups. Use **Continuation Token** to get the next page.
|
|
27
|
+
|
|
28
|
+
**Event.** **List** returns one page of organization events. Use **Start** and **End** to limit the time range. Both use ISO 8601 date-times, for example `2026-01-01T00:00:00.000Z`. Both are optional. The values are sent as they are. Use **Continuation Token** to get the next page.
|
|
29
|
+
|
|
30
|
+
**Pagination.** The node does not page by itself. Each run returns one page. The answer has a `continuationToken` field when Bitwarden has more items. Put that value in **Continuation Token** of the next run.
|
|
31
|
+
|
|
32
|
+
**Output.** The output is the JSON answer of Bitwarden. A list answer has a `data` array. A get answer is one object. If Bitwarden sends an empty answer, the output is `{ "success": true }`. The node does not use binary data.
|
|
33
|
+
|
|
34
|
+
**Requests.** Each run first gets an access token from the identity endpoint. It then sends the API request with that token. The node does not keep the token between runs. A redirect is an error.
|
|
35
|
+
|
|
36
|
+
**Timeout.** The `timeoutMs` setting sets the limit for each request, including the token request. The default is 30000. The range is 1 to 300000.
|
|
37
|
+
|
|
38
|
+
**Limits.** The node does not retry. Bitwarden can return status 429 when it limits the rate of requests. The error then says that the rate limit was reached. Try again later.
|
|
39
|
+
|
|
40
|
+
**Errors.** An error message names the call and the HTTP status. For 401, 403, 404, and 429 it adds a short hint. The message never includes the client secret or the token.
|
|
41
|
+
|
|
42
|
+
## Credentials
|
|
43
|
+
|
|
44
|
+
### Bitwarden OAuth2 client credentials (`bitwarden.oauth2`)
|
|
45
|
+
|
|
46
|
+
- **Client ID** (`clientId`), required. The organization API client ID.
|
|
47
|
+
- **Client Secret** (`clientSecret`), required, secret. The organization API client secret.
|
|
48
|
+
- **API Base URL** (`apiBaseUrl`), optional. Defaults to `https://api.bitwarden.com`. Set it for a self-hosted or EU cloud instance.
|
|
49
|
+
- **Identity Base URL** (`identityBaseUrl`), optional. Defaults to `https://identity.bitwarden.com`. Set it for a self-hosted or EU cloud instance.
|
|
50
|
+
|
|
51
|
+
The credential uses the OAuth2 client credentials grant with the scope `api.organization`. Testing the credential fetches a token.
|
|
52
|
+
|
|
53
|
+
Setup:
|
|
54
|
+
|
|
55
|
+
1. In the Bitwarden Admin Console, create an organization API key for the organization.
|
|
56
|
+
2. Copy the client ID and the client secret.
|
|
57
|
+
3. In zerodot, create a **Bitwarden OAuth2 client credentials** credential. Paste the client ID and the client secret.
|
|
58
|
+
4. For a self-hosted or EU cloud instance, set **API Base URL** and **Identity Base URL**.
|
|
59
|
+
5. Test the credential.
|
|
60
|
+
|
|
61
|
+
## License
|
|
62
|
+
|
|
63
|
+
AGPL-3.0-only
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zerodot/bitwarden",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Manage collections, members, groups, and organization events in Bitwarden. Use it to work with the Bitwarden Public API for organization administration.",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
|
+
"homepage": "https://github.com/zerodot-io/nodes/tree/main/packages/bitwarden",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
8
9
|
"url": "git+https://github.com/zerodot-io/nodes.git",
|