Closed forgotPassword closed 1 year ago
Hi @forgotPassword
Thanks for the bug report! Now that the team is back from winter holidays, I'll have someone look into this.
The SDK is likely waiting on the YubiKey, which in turn is waiting on the user to touch the key. I'm not sure if there is a reliable way for the SDK to detect when the YubiKey requires touch, but if we can, I think we can try to build some sort of notification mechanism so that you can programmatically inform the user that they need to touch the key.
The bug has been root caused and a fix will be released in the next week or so.
YubiKeys require a brief pause between switching USB interfaces. The SDK talks to multiple USB interfaces while enumerating YubiKeys in order to match the devices into a single "logical" representation of a YubiKey. We cheat and don't wait during enumeration as we want enumeration to be fast. But apparently doing so causes issues with the YubiKey's touch detection routines. So now the SDK will try to track USB interface switching and will add the appropriate wait whenever it is needed.
We'll add more documentation around this behavior when we release as it may result in some calls to take longer than usual.
The fix for this issue has been released in the latest SDK version (1.6.0).
I'm closing this issue, but if you continue to encounter the issue, please feel free to reopen it.
Hello, I have a key with pin policy NEVER and touch policy ALWAYS. The following code raises
SCardException
after 10 seconds :I believe the correct behavior should be
OperationCanceledException
.