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

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