W3C home > Mailing lists > Public > public-webauthn@w3.org > August 2019

Re: [webauthn] change AuthenticatorTransport to be other than an `enum` (#1268)

From: J.C. Jones via GitHub <sysbot+gh@w3.org>
Date: Mon, 12 Aug 2019 19:24:33 +0000
To: public-webauthn@w3.org
Message-ID: <issue_comment.created-520561028-1565637872-sysbot+gh@w3.org>
Just to be clear, right now the Web Authentication spec only allows values for AuthenticatorTransport that are in the level 1 spec. Permitting other values is a violation of [WebIDL's definition of enumeration](https://heycam.github.io/webidl/#ref-for-idl-enumeration%E2%91%A0)

A fix for this would be to change `PublicKeyCredentialDescriptor`'s `transports` sequence to one of `DOMString` and update the algorithm to note that each string should be coerced into a transport type known by the implementation, or ignored if unknown. 

dictionary PublicKeyCredentialDescriptor {
    required PublicKeyCredentialType      type;
    required BufferSource                 id;
    sequence<DOMString>                   transports;

GitHub Notification of comment by jcjones
Please view or discuss this issue at https://github.com/w3c/webauthn/issues/1268#issuecomment-520561028 using your GitHub account
Received on Monday, 12 August 2019 19:24:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:59:06 UTC