Re: [webauthn] Supported features detection from the browser (#1202)

@akshayku and I have been discussing this on our side as well.  We've been thinking of something along the lines of the following, accounting for the items mentioned above as well as some additional ones:

interface supportedCapabilities {
  readonly attribute boolean areU2FDevicesSupported; 
  readonly attribute boolean areCTAPDevicesSupported;
  readonly attribute boolean areResidentKeysSupported;
  readonly attribute boolean isUserVerificationSupported;
  readonly attribute boolean isTokenBindingSupported;
  readonly attribute sequence<AuthenticatorTransport> transportsSupported;
  readonly attribute sequence<DOMString> extensionsSupported;
};

partial interface PublicKeyCredential {
  static Promise<platformInfo> getSupportedCapabilities();
}

Will open a PR as well.

-- 
GitHub Notification of comment by jasonf1990
Please view or discuss this issue at https://github.com/w3c/webauthn/issues/1202#issuecomment-486366631 using your GitHub account

Received on Wednesday, 24 April 2019 18:14:58 UTC