[PR #6904] [MERGED] fix: add ForcePasswordReset to api key login #20696

Closed
opened 2026-04-25 22:40:31 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/6904
Author: @montdidier
Created: 3/6/2026
Status: Merged
Merged: 3/9/2026
Merged by: @dani-garcia

Base: mainHead: fix/force-pass-reset


📝 Commits (1)

  • 678d733 fix: add ForcePasswordReset to api key login

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 src/api/identity.rs (+1 -0)

📄 Description

DESCRIPTION

This should address #5641 and #5642 if maintainers choose to merge this.

On attempting to use this patch with the Bitwarden SDK this does allow the user api key login flow to work for the login request and response at least.

Noting that full API compatibility may not the be the ultimate goal of Vaultwarden it does allow the official SDK to use this flow at least (there are obviously other missing endpoints like /api/organizations/<org_id>/secrets that do not even allow the example snippet provided with the SDK README to complete successfully).

Context: I am trying to write a CLI application - but a few challenges have made me realise I probably shouldn't be trying to leverage the official SDK to do this as I'm realistically targeting Vaultwarden more than Bitwarden proper.

The official SDK is also very poorly documented.

The offical SDK considers this field mandatory

See https://docs.rs/bitwarden-core/2.0.0/src/bitwarden_core/auth/api/response/identity_success_response.rs.html#33-34


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/6904 **Author:** [@montdidier](https://github.com/montdidier) **Created:** 3/6/2026 **Status:** ✅ Merged **Merged:** 3/9/2026 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `fix/force-pass-reset` --- ### 📝 Commits (1) - [`678d733`](https://github.com/dani-garcia/vaultwarden/commit/678d73385d44b02f45bbea562ccf49677494dcae) fix: add ForcePasswordReset to api key login ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/api/identity.rs` (+1 -0) </details> ### 📄 Description **DESCRIPTION** This should address #5641 and #5642 if maintainers choose to merge this. On attempting to use this patch with the [Bitwarden SDK](https://crates.io/crates/bitwarden) this does allow the user api key login flow to work for the login request and response at least. Noting that full API compatibility may not the be the ultimate goal of Vaultwarden it does allow the official SDK to use this flow at least (there are obviously other missing endpoints like `/api/organizations/<org_id>/secrets` that do not even allow the example snippet provided with the SDK README to complete successfully). Context: I am trying to write a CLI application - but a few challenges have made me realise I probably shouldn't be trying to leverage the official SDK to do this as I'm realistically targeting Vaultwarden more than Bitwarden proper. The official SDK is also _very_ poorly documented. The offical SDK considers this field mandatory See https://docs.rs/bitwarden-core/2.0.0/src/bitwarden_core/auth/api/response/identity_success_response.rs.html#33-34 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-25 22:40:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#20696