]> git.proxmox.com Git - proxmox-perl-rs.git/commit
tfa: handle incompatible challenge data
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 19 Nov 2021 13:13:27 +0000 (14:13 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 19 Nov 2021 13:13:27 +0000 (14:13 +0100)
commit4b4d8fb47b06c6b0e43d231969e0cbf9e44cfc63
tree52470180ae350b9d6de6ab981a9c37fedf3da702
parent344469a057a7637bef395c0035d37ee5ce03d67b
tfa: handle incompatible challenge data

by returning default data, in case the challenge data is not parseable.
this allows a new challenge to be started for the userid in question
without manual cleanup.

currently this can be triggered if an ongoing challenge created with
webauthn-rs 0.2.5 is stored in /run and attempted to be read
post-upgrade.

Reported-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
pve-rs/src/tfa.rs