You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Paramater residentKey will be ignored when Initializing AuthenticatorSelectionCriteria
How to reproduce
new AuthenticatorSelectionCriteria(null, "preferred", "required")->residentKey;
Possible Solution
This line should be $this->residentKey = $residentKey !== null ? $residentKey : ($requireResidentKey === true ? self::RESIDENT_KEY_REQUIREMENT_REQUIRED : self::RESIDENT_KEY_REQUIREMENT_PREFERRED);
Hi, Thank you for response and commiting to this great library! It was hard to find solid library for webauthn in PHP so I am so pleasure to meet to this.
Thank you for looking into this problem as well, I think this can be fixed by my suggestion so Can I open the pull request with these changes?
Version(s) affected
4.7.4
Description
Paramater
residentKey
will be ignored when Initializing AuthenticatorSelectionCriteriaHow to reproduce
new AuthenticatorSelectionCriteria(null, "preferred", "required")->residentKey;
Possible Solution
This line should be
$this->residentKey = $residentKey !== null ? $residentKey : ($requireResidentKey === true ? self::RESIDENT_KEY_REQUIREMENT_REQUIRED : self::RESIDENT_KEY_REQUIREMENT_PREFERRED);
webauthn-framework/src/webauthn/src/AuthenticatorSelectionCriteria.php
Line 80 in d7b7eb7
Additional Context
No response
The text was updated successfully, but these errors were encountered: