-
-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some suggestions on the residentKey #255
Comments
I'm not sure I follow what the issue is with Is there a specific FIDO Conformance test I can run locally to confirm the issue you're seeing? |
There is no problem with the test. I just have a question about the code, so I'd like to discuss it. The code determines the value of 'requireResidentKey' through the current 'ResidentKey'. In Level 1, the value can be set to 'requireResidentKey' because there is no 'ResidentKey' field. However, if you insert the values 'ResidentKey = undefiend' and 'requireResidentKey = true' through the current library, the value will be 'requireResidentKey = false'. If you look at the Level 2 documentation, it says:
In other words, I thought that 'ResidentKey' was considered the first priority, but if this value did not exist, the value 'ResidentKey' was determined through the value 'RequiredResidentNetKey'. In conclusion, I thought about changing the current code like this. I wanted to suggest that if you change this part to something like this, it will be a more flexible code that passes through both Level 2 and Level 1. |
Ah, I understand now, thanks for the extra context. Re-reading the definitions of
...and the bit in
(Emphasis mine)
Thank you for taking the time to think up alternative logic for Note that I wasn't able to initialize
If I left out just that one branch of logic then FIDO Conformance tests remain passing. |
@dc-choi This improvement to the interplay between |
We developed Server using simpleWebAuthn(5.4.5) library. Test by FIDO Conformance Tools 1.7.2
Currently, SimpleWebAuthn is importing the requireResidentKey using the value of the residentKey, as shown in the example below.
This is in line with Level 2 recommendations.
https://www.w3.org/TR/webauthn/#dictdef-authenticatorselectioncriteria
However, we are trying to get Level1 certification. So I don't use the residentKey.
So, try to get the residentKey, the value comes in undefined.
I thought like the next picture to solve this problem.
I thought that the compatibility with Level1 would be guaranteed to some extent if it was solved like the picture.
Can you give some suggestions to solve this?
The text was updated successfully, but these errors were encountered: