vaultwarden.models.bitwarden.get_organization() requires owner user
まだ誰も着手していません。
評価
調査の方向性
Start at vaultwarden.models.bitwarden.get_organization() and inspect how bitwarden_client data from the /api/sync endpoint is represented, along with the Organization object shown in the issue. Verify the behavior with a normal user and confirm that organization access no longer requires the owner-only endpoint.
索引モデルが issue の本文から書いたものです。
説明
trying to access my organization from a normal user fails:
from vaultwarden.models.bitwarden import get_organization
orga= get_organization(bitwarden_client, org_uuid)
GET /api/organizations/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
Unauthorized Error: You need to be Owner to call this endpoint
Request guard `OwnerHeaders` failed: "You need to be Owner to call this endpoint".
(get_organization) GET /api/organizations/<org_id> => 401 Unauthorized
it seems that it is not necessary to call this endpoint. bitwarden_client should already have all the details about a user's organization (from the /api/sync endpoint). alternatively, an Organization object could be instantiated manually, but that seems more like a workaround than a solution:
org = Organization(
Id = "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
Name = "my Org",
Object = None,
bitwarden_client = bitwarden_client
)
- 主要言語
- Python
- スター
- 37
- フォーク
- 13
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
numberly/python-vaultwarden のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
numberly/python-vaultwarden の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
521xueweihan/HelloGitHub#4025 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
aws-samples/sample-per-model-bedrock#321 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 68/100
FavioVazquez/showtime#101 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
koush/ha_scrypted#81 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
google/osv-scanner-action#147 ·