Hi,
I’m trying to configure DUO 2FA with push for my Vaultwarden 1.33.0 instance. After creating the application in my DUO account and filling out the form in the DUO 2FA setup window in Vaultwarden, I get an error saying “An unexpected error has occurred.”
The log says there is a missing field called secretKey, although I have filled out all three fields in the form.
Jan 27 22:13:28 vaultwarden vaultwarden[130]: [2025-01-27 22:13:28.975][request][INFO] PUT /api/two-factor/duo
Jan 27 22:13:28 vaultwarden vaultwarden[130]: [2025-01-27 22:13:28.976][vaultwarden::api::core::two_factor::duo::_][WARN] Data guard `Json < EnableDuoData >` failed: Parse("{\"masterPasswordHash\":\"[REDACTED]",\"clientId\":\"[REDACTED]",\"clientSecret\":\"[REDACTED]",\"host\":\"[REDACTED].duosecurity.com\"}", Error("missing field `secretKey`", line: 1, column: 199)).
Jan 27 22:13:28 vaultwarden vaultwarden[130]: [2025-01-27 22:13:28.976][response][INFO] (activate_duo_put) PUT /api/two-factor/duo => 422 Unprocessable Entity
I have also checked the Diagnistics page on the Admin site in Vaultwarden and everything looks fine there, with no red “markers”.
Any help would be greatly appreciated!