Web client sends different fields to the API (and also receives wrong ones): clientSecret instead of secretKey and clientId instead of integrationKey
I believe, this PR can address this.
When saving:
When loading (Client Id and Client Secret is empty):
🔄 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/5491
**Author:** [@ratiner](https://github.com/ratiner)
**Created:** 1/28/2025
**Status:** ✅ Merged
**Merged:** 1/29/2025
**Merged by:** [@BlackDex](https://github.com/BlackDex)
**Base:** `main` ← **Head:** `fix-duo-fields`
---
### 📝 Commits (3)
- [`9c1bf92`](https://github.com/dani-garcia/vaultwarden/commit/9c1bf92a53822cd95ef996927d6efbf8952d08ff) Fix Duo Field Names for Web Client
- [`157dfcd`](https://github.com/dani-garcia/vaultwarden/commit/157dfcd6e12e93eef2365cacef8143f77942993a) Fix Api Validation
- [`27665b1`](https://github.com/dani-garcia/vaultwarden/commit/27665b1f53a83e318e9ef28e8287b8e010cd70da) Rename Duo Labels In Admin
### 📊 Changes
**2 files changed** (+13 additions, -13 deletions)
<details>
<summary>View changed files</summary>
📝 `src/api/core/two_factor/duo.rs` (+11 -11)
📝 `src/config.rs` (+2 -2)
</details>
### 📄 Description
Looks like the web client expects different fields for duo integration.
The changes were introduced in the following commit:
https://github.com/bitwarden/clients/commit/41e1d9155850581be85d11e4b74088aa022f8381#diff-2be3b52c1ad01eac329688bca2644e0aa1f819167ed8a9d52ed57f72e18b8aa8L4
https://github.com/bitwarden/clients/commit/41e1d9155850581be85d11e4b74088aa022f8381#diff-8813d04cfcaad734e34e034e8a85eeb4a528d55aeb52b5c88e6bcbfced9fc260L13
Web client sends different fields to the API (and also receives wrong ones):
`clientSecret` instead of `secretKey` and `clientId` instead of `integrationKey`
I believe, this PR can address this.
When saving:

When loading (Client Id and Client Secret is empty):

---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/5491
Author: @ratiner
Created: 1/28/2025
Status: ✅ Merged
Merged: 1/29/2025
Merged by: @BlackDex
Base:
main← Head:fix-duo-fields📝 Commits (3)
9c1bf92Fix Duo Field Names for Web Client157dfcdFix Api Validation27665b1Rename Duo Labels In Admin📊 Changes
2 files changed (+13 additions, -13 deletions)
View changed files
📝
src/api/core/two_factor/duo.rs(+11 -11)📝
src/config.rs(+2 -2)📄 Description
Looks like the web client expects different fields for duo integration.
The changes were introduced in the following commit:
https://github.com/bitwarden/clients/commit/41e1d9155850581be85d11e4b74088aa022f8381#diff-2be3b52c1ad01eac329688bca2644e0aa1f819167ed8a9d52ed57f72e18b8aa8L4
https://github.com/bitwarden/clients/commit/41e1d9155850581be85d11e4b74088aa022f8381#diff-8813d04cfcaad734e34e034e8a85eeb4a528d55aeb52b5c88e6bcbfced9fc260L13
Web client sends different fields to the API (and also receives wrong ones):
clientSecretinstead ofsecretKeyandclientIdinstead ofintegrationKeyI believe, this PR can address this.
When saving:

When loading (Client Id and Client Secret is empty):

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