Skip to content

feat: allow getting org id based on access token#1418

Draft
tangowithfoxtrot wants to merge 4 commits into
mainfrom
allow-auto-retrieving-org-id-in-sdk
Draft

feat: allow getting org id based on access token#1418
tangowithfoxtrot wants to merge 4 commits into
mainfrom
allow-auto-retrieving-org-id-in-sdk

Conversation

@tangowithfoxtrot
Copy link
Copy Markdown
Contributor

@tangowithfoxtrot tangowithfoxtrot commented Jan 15, 2026

🎟️ Tracking

📔 Objective

Non-breaking, but less convenient version of #1419.

The Rust SDK can automatically get the organization ID from the client. This allows the bws CLI to work without forcing the user to supply their org ID for every command. However, this functionality is not exposed in the language wrappers, which makes using them somewhat tedious. This PR makes the org ID retrieval available to the Python wrapper, removing the need to supply it when CRUDing projects and secrets.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation
    team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed
    issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 15, 2026

Codecov Report

❌ Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 15.21%. Comparing base (b55c4b0) to head (b195ada).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
crates/bitwarden-py/src/client.rs 0.00% 5 Missing ⚠️
crates/bitwarden-json/src/client.rs 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1418      +/-   ##
==========================================
- Coverage   15.34%   15.21%   -0.13%     
==========================================
  Files          21       21              
  Lines        1199     1209      +10     
==========================================
  Hits          184      184              
- Misses       1015     1025      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 15, 2026

Logo
Checkmarx One – Scan Summary & Detailse69422b6-13d2-4822-9dcb-06d1c79c61d2

New Issues (1)

Checkmarx found the following issues in this Pull Request

# Severity Issue Source File / Package Checkmarx Insight
1 HIGH CVE-2025-64756 Npm-glob-11.0.3
detailsRecommended version: 11.1.0
Description: Glob matches files using patterns the shell uses. In versions 10.2.0 prior to 10.5.0 and 11.0.0 prior to 11.1.0, the glob CLI contains a command in...
Attack Vector: NETWORK
Attack Complexity: HIGH
Vulnerable Package

@tangowithfoxtrot tangowithfoxtrot force-pushed the allow-auto-retrieving-org-id-in-sdk branch from 3164497 to 13451e2 Compare January 15, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant