Closed melanger closed 2 years ago
According to the standard this should be an array not restricted to two entries: https://www.w3.org/TR/webauthn/#dom-publickeycredentialcreationoptions-pubkeycredparams I think it was implemented this way because in Python lists might not necessarily ordered.
https://github.com/privacyidea/webauthn-client/blob/af0e59f57f857af78496bc273842a95913834851/pi-webauthn.js#L391 https://github.com/privacyidea/webauthn-client/blob/af0e59f57f857af78496bc273842a95913834851/pi-webauthn.js#L397
Only 1-2
pubKeyCredParams
(therefore algorithms) are supported via parameterspreferredAlgorithm
andalternativeAlgorithm
. This library cannot be used for 3 or more algorithms at once. For example, I cannot allow all three ES256, PS256 and RS256 at the same time. This affects privacyIDEA, which has the same limitation because of this library.