wpt icon indicating copy to clipboard operation
wpt copied to clipboard

webauthn: Change PublicKeyCredentialType enum to DOMString type

Open chromium-wpt-export-bot opened this issue 3 years ago • 1 comments

PublicKeyCredentialType enum should be replaced with DOMString in PublicKeyCredentialDescriptor and PublicKeyCredentialParameters to comply to the spec.

In CredentialCreationOptions, if options.pubKeyCredParams's size is non-zero and credTypesAndPubKeyAlgs is empty, it should throw a "NotSupportedError" DOMException. [1]

[1] https://w3c.github.io/webauthn/#sctn-createCredential

Bug: 1122731 Change-Id: Ia20645561da332442fb398ebbfc1bc56687670c4 Reviewed-on: https://chromium-review.googlesource.com/3705259 WPT-Export-Revision: a914ecdbdaf57194c37162b49ab6c0ce214c94c2

chromium-wpt-export-bot avatar Jun 16 '22 18:06 chromium-wpt-export-bot

PublicKeyCredentialType enum should be replaced with DOMString in PublicKeyCredentialDescriptor and PublicKeyCredentialParameters to comply to the spec.

In CredentialCreationOptions, if options.pubKeyCredParams's size is non-zero and credTypesAndPubKeyAlgs is empty, it should throw a "NotSupportedError" DOMException. [1]

[1] https://w3c.github.io/webauthn/#sctn-createCredential

Bug: 1122731 Change-Id: Ia20645561da332442fb398ebbfc1bc56687670c4 Reviewed-on: https://chromium-review.googlesource.com/3705259 WPT-Export-Revision: a914ecdbdaf57194c37162b49ab6c0ce214c94c2

Osvaldorino avatar Jul 28 '22 07:07 Osvaldorino