mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-23 08:32:45 -05:00
[PR #6904] [MERGED] fix: add ForcePasswordReset to api key login #7503
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
main← Head:fix/force-pass-reset📝 Commits (1)
678d733fix: 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>/secretsthat 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.
[PR #6904] fix: add ForcePasswordReset to api key loginto [PR #6904] [MERGED] fix: add ForcePasswordReset to api key login