Pass correct values of pinUvAuthParam and pinUvAuthProtocol to makeCredential.
Before this fix, we wrongly passed 0 pinUvAuthProtocol value instead of null.
The new integration test verify makeCredential and getAssertion with null PIN and UserVerificationRequirement.DISCOURAGED. This way it is possible to create rk = true and rk = false credentials on FIDO2 keys which don't have PIN set. FIDO2 keys with set PIN will return 0x36 PIN_REQUIRED error.
Pass correct values of pinUvAuthParam and pinUvAuthProtocol to makeCredential.
Before this fix, we wrongly passed
0
pinUvAuthProtocol value instead ofnull
.The new integration test verify makeCredential and getAssertion with
null
PIN and UserVerificationRequirement.DISCOURAGED. This way it is possible to create rk = true and rk = false credentials on FIDO2 keys which don't have PIN set. FIDO2 keys with set PIN will return0x36
PIN_REQUIRED error.