fix: add ForcePasswordReset to api key login #79

Closed
opened 2026-04-05 20:29:44 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @montdidier on 3/6/2026

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

*Originally created by @montdidier on 3/6/2026* **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
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#79