Skip to content

Conversation

@JaredSnider-Bitwarden
Copy link
Contributor

@JaredSnider-Bitwarden JaredSnider-Bitwarden commented Nov 7, 2025

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-14922

📔 Objective

To deliver an MVP of login with password in the SDK. This will not include 2FA or new device verification support at first.

Outstanding Notes / Questions for Reviewers

  1. Several of the request / response models that I copied over from bitwarden-core used the schemars::JsonSchema macro. However, per Claude: "JsonSchema is applied inconsistently and there's no clear, documented rule for when to use it." in the codebase. I've removed them from the auth crate for now until I know when we should apply them + it avoids adding an extra dependency of schemars.
    a. Do we need it for API request / response models (SDK to API)?
    b. Do we need it for WASM / UNIFFI SDK request / response models (SDK to consuming clients)?

  2. The test coverage is running into a rustc-LLVM ERROR: IO failure on output stream: No space left on device error. Not sure what to do about that. cargo test run locally passes all tests.

  3. I followed the steps to build the SDK for WASM here and npm linked it using the instructions here in order to try and wire up a demo in Auth/PM-14922 - WIP SDK password login demo (do not merge) clients#18103, but I'm getting a wall of errors about missing exported data from @bitwarden/sdk-internal. Example: ERROR in ../../libs/admin-console/src/common/organization-user/models/requests/organization-user-bulk-confirm.request.ts:1:10 - error TS2305: Module '"@bitwarden/sdk-internal"' has no exported member 'EncString'.. Not sure what is going on there.

⏰ 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

@JaredSnider-Bitwarden JaredSnider-Bitwarden changed the title Auth/PM-14922 - Identity Client - Offer get_password_prelogin_data as top … Auth/PM-14922 - Identity Client - WIP Nov 7, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2025

Logo
Checkmarx One – Scan Summary & Detailse25b45da-8ca3-4b02-8f03-297f82c9853a

Great job! No new security vulnerabilities introduced in this pull request

@codecov
Copy link

codecov bot commented Nov 7, 2025

Codecov Report

❌ Patch coverage is 97.40864% with 39 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.78%. Comparing base (6c95401) to head (64f101c).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../identity/api/response/login_error_api_response.rs 90.67% 18 Missing ⚠️
...dentity/login_via_password/password_login_error.rs 93.24% 15 Missing ⚠️
...dentity/models/user_decryption_options_response.rs 96.73% 3 Missing ⚠️
crates/bitwarden-auth/src/auth_client.rs 0.00% 2 Missing ⚠️
crates/bitwarden-auth/src/api/enums/scope.rs 91.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #549      +/-   ##
==========================================
+ Coverage   78.85%   79.78%   +0.93%     
==========================================
  Files         283      298      +15     
  Lines       29680    31171    +1491     
==========================================
+ Hits        23404    24871    +1467     
- Misses       6276     6300      +24     

☔ 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.

…rd_prelogin file to prevent identity client file from growing substantially as we add items (per feedback from platform)
…d suffixed (2) Add required mod declarations for usages to show up and fix imports.
…d required scopes for standard BW user and mechanism for converting array of scopes to space separated string (3) UserTokenApiRequest - build constructor with default scopes already included
@github-actions
Copy link
Contributor

github-actions bot commented Nov 14, 2025

🔍 SDK Breaking Change Detection Results

SDK Version: auth/pm-14922/mp-login (899b732)
Completed: 2025-12-24 04:30:01 UTC
Total Time: 248s

Client Status Details
typescript ✅ No breaking changes detected TypeScript compilation passed with new SDK version - View Details

Breaking change detection completed. View SDK workflow

@JaredSnider-Bitwarden JaredSnider-Bitwarden removed the ai-review Request a Claude code review label Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
@bitwarden bitwarden deleted a comment from claude bot Dec 24, 2025
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.

3 participants