vaultwarden.models.bitwarden.get_organization() requires owner user
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 45/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
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
)
- Langage dominant
- Python
- Étoiles
- 37
- Forks
- 14
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de numberly/python-vaultwarden
-
Missing model and parameters, when testing against a 1.37.2 serverPeut-être pris @Lujeni l’a pris il y a 4 jours. Ouvertenew
numberly/python-vaultwarden#54 · 1 commentaire · 1 personne assignée ·
-
Ciphers management supportOuverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 15/100
-
Support end user operationsOuverteenhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 15/100
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
Toutes les issues de numberly/python-vaultwarden
Issues similaires
-
good first issue priority: low size: XS testing
Difficulté 1/5 1-3 heures Accessibilité débutants 86/100
cubrid-lab/cubrid-mcp-server#385 ·
Les mainteneurs répondent en général sous 1 jour
-
good first issue priority: low size: S testing
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
cubrid-lab/cubrid-cookbook-python#447 ·
Les mainteneurs répondent en général sous 1 jour
-
Python PointcloudOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
ArduCAM/Arducam_tof_camera#125 ·
-
area:curator enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
CassioDalla/Scrinalia#150 ·
Les mainteneurs répondent en général sous 1 jour
-
Tutorial notebook: Find the leakOuvertedocumentation good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100