[PR #2907] [CLOSED] Impl the "org API key" and "Public API" needed to use "Bitwarden Directory Connector" #3181

Closed
opened 2026-03-03 09:41:45 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/2907
Author: @Kurnihil
Created: 11/10/2022
Status: Closed

Base: mainHead: directory_connector


📝 Commits (5)

  • 04a8054 Implemented the API key organization and public API needed to use "Bitwarden Directory Connector"
  • 2a0a9eb to_be_squashed, clippy and fmt changes
  • c5b8257 to_be_squashed, fix OrganizationApiKey db save call
  • f37de9c to be squashed
  • ee2cd0d fixed groups permissions

📊 Changes

26 files changed (+597 additions, -27 deletions)

View changed files

migrations/mysql/2022-07-21-200424_create_organization_api_key/down.sql (+0 -0)
migrations/mysql/2022-07-21-200424_create_organization_api_key/up.sql (+8 -0)
migrations/mysql/2022-11-08-234911_add_external_id/down.sql (+0 -0)
migrations/mysql/2022-11-08-234911_add_external_id/up.sql (+2 -0)
migrations/postgresql/2022-07-21-200424_create_organization_api_key/down.sql (+0 -0)
migrations/postgresql/2022-07-21-200424_create_organization_api_key/up.sql (+8 -0)
migrations/postgresql/2022-11-08-234911_add_external_id/down.sql (+0 -0)
migrations/postgresql/2022-11-08-234911_add_external_id/up.sql (+2 -0)
migrations/sqlite/2022-07-21-200424_create_organization_api_key/down.sql (+0 -0)
migrations/sqlite/2022-07-21-200424_create_organization_api_key/up.sql (+9 -0)
migrations/sqlite/2022-11-08-234911_add_external_id/down.sql (+0 -0)
migrations/sqlite/2022-11-08-234911_add_external_id/up.sql (+2 -0)
📝 src/api/core/mod.rs (+2 -0)
📝 src/api/core/organizations.rs (+59 -3)
src/api/core/public.rs (+231 -0)
📝 src/api/identity.rs (+45 -10)
📝 src/auth.rs (+35 -0)
📝 src/db/models/collection.rs (+44 -4)
📝 src/db/models/group.rs (+10 -5)
📝 src/db/models/mod.rs (+1 -1)

...and 6 more files

📄 Description

Hello,
I've started with the org-api-key branch of @BlackDex https://github.com/BlackDex/vaultwarden/tree/org-api-key
And added what was needed to use the "Bitwarden Directory Connector".
That means only the /public/organization/import route

I'm willing to continue with the implementation of the public API,
but before doing that I would like that somebody else looks at the code.

I've tested it locally but for sure some more testing is needed.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/2907 **Author:** [@Kurnihil](https://github.com/Kurnihil) **Created:** 11/10/2022 **Status:** ❌ Closed **Base:** `main` ← **Head:** `directory_connector` --- ### 📝 Commits (5) - [`04a8054`](https://github.com/dani-garcia/vaultwarden/commit/04a8054d73debeb318232e10a392c6753f4a087b) Implemented the API key organization and public API needed to use "Bitwarden Directory Connector" - [`2a0a9eb`](https://github.com/dani-garcia/vaultwarden/commit/2a0a9ebf10eaeca5e3b0456d0f7a326963756005) to_be_squashed, clippy and fmt changes - [`c5b8257`](https://github.com/dani-garcia/vaultwarden/commit/c5b8257b792782dee87ce3c4cd1df907ffd4126b) to_be_squashed, fix OrganizationApiKey db save call - [`f37de9c`](https://github.com/dani-garcia/vaultwarden/commit/f37de9ca6e00a2663824ec3482e0ad19351ece5a) to be squashed - [`ee2cd0d`](https://github.com/dani-garcia/vaultwarden/commit/ee2cd0df465f674522a813b63401bf110fce5032) fixed groups permissions ### 📊 Changes **26 files changed** (+597 additions, -27 deletions) <details> <summary>View changed files</summary> ➕ `migrations/mysql/2022-07-21-200424_create_organization_api_key/down.sql` (+0 -0) ➕ `migrations/mysql/2022-07-21-200424_create_organization_api_key/up.sql` (+8 -0) ➕ `migrations/mysql/2022-11-08-234911_add_external_id/down.sql` (+0 -0) ➕ `migrations/mysql/2022-11-08-234911_add_external_id/up.sql` (+2 -0) ➕ `migrations/postgresql/2022-07-21-200424_create_organization_api_key/down.sql` (+0 -0) ➕ `migrations/postgresql/2022-07-21-200424_create_organization_api_key/up.sql` (+8 -0) ➕ `migrations/postgresql/2022-11-08-234911_add_external_id/down.sql` (+0 -0) ➕ `migrations/postgresql/2022-11-08-234911_add_external_id/up.sql` (+2 -0) ➕ `migrations/sqlite/2022-07-21-200424_create_organization_api_key/down.sql` (+0 -0) ➕ `migrations/sqlite/2022-07-21-200424_create_organization_api_key/up.sql` (+9 -0) ➕ `migrations/sqlite/2022-11-08-234911_add_external_id/down.sql` (+0 -0) ➕ `migrations/sqlite/2022-11-08-234911_add_external_id/up.sql` (+2 -0) 📝 `src/api/core/mod.rs` (+2 -0) 📝 `src/api/core/organizations.rs` (+59 -3) ➕ `src/api/core/public.rs` (+231 -0) 📝 `src/api/identity.rs` (+45 -10) 📝 `src/auth.rs` (+35 -0) 📝 `src/db/models/collection.rs` (+44 -4) 📝 `src/db/models/group.rs` (+10 -5) 📝 `src/db/models/mod.rs` (+1 -1) _...and 6 more files_ </details> ### 📄 Description Hello, I've started with the org-api-key branch of @BlackDex [https://github.com/BlackDex/vaultwarden/tree/org-api-key](url) And added what was needed to use the "Bitwarden Directory Connector". That means only the /public/organization/import route I'm willing to continue with the implementation of the public API, but before doing that I would like that somebody else looks at the code. I've tested it locally but for sure some more testing is needed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 09:41:45 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#3181
No description provided.