mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-09 12:45:33 -05:00
[PR #2899] [MERGED] Support Org Export for v2022.11 clients #6820
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/2899
Author: @BlackDex
Created: 11/7/2022
Status: ✅ Merged
Merged: 11/9/2022
Merged by: @dani-garcia
Base:
main← Head:org-export-fixes📝 Commits (1)
c9ec389Support Org Export for v2022.11 clients📊 Changes
4 files changed (+61 additions, -21 deletions)
View changed files
📝
Cargo.lock(+7 -0)📝
Cargo.toml(+3 -0)📝
src/api/core/organizations.rs(+48 -21)📝
src/auth.rs(+3 -0)📄 Description
Since v2022.9.x the org export uses a different endpoint. But, since v2022.11.x this endpoint will return a different format. See: https://github.com/bitwarden/clients/pull/3641 and https://github.com/bitwarden/server/pull/2316
To support both version in the case of users having an older client either web-vault or cli this PR checks the version and responds using the correct format. If no version can be determined it will use the new format as a default.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.