vaultwarden.models.bitwarden.get_organization() requires owner user
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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
)
- Dominant language
- Python
- Stars
- 37
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from numberly/python-vaultwarden
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 20/100
All issues in numberly/python-vaultwarden
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
zostera/django-bootstrap4#894 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
use-agent-os/agent-os#3276 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NousResearch/hermes-agent#117848 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
zilliztech/memsearch#759 ·