Open Tarry91 opened 6 years ago
Basic server response is now added when testing Yubikey server configuration and when adding a key to your account. No response information is (deliberately) given during normal authentication as doing so would risk providing sensitive information to an attacker.
It would be helpful to print some information to the nextcloud log if verifiying an OTP fails. I think especially about the "status" string as described here -->https://developers.yubico.com/OTP/Specifications/OTP_validation_protocol.html This would be helpful for administrators debugging login issues of users.
If the Try an OTP feature on the admin page is used the error codes could be displayed directly additionaly to printing it to the log.
Copying from the yubicloud API documentation: