• Martin Kreichgauer's avatar
    fido: invoke Windows API authenticator for all transports · b129ae56
    Martin Kreichgauer authored
    Rather than only forwarding USB requests to the Windows WebAuthn API,
    we are going to forward all requests. This consequently renames the
    FidoAuthenticator subclass to WinWebAuthnApiAuthenticator. The
    corresponding FidoDiscovery is instantiated for all requests where the
    WebAuthn API is available (i.e., the feature is flag enabled, and the
    DLL can be loaded and is at least version 1). When it is indeed
    available, all other discoveries are disabled and the UI is suppressed
    via a newly introduced option in the TransportAvailabilityInfo struct
    relayed to embedders via the TransportAvailabilityObserver interface.
    
    Note this temporarily breaks caBLE whenever the Windows API is
    flag-enabled and available. (But the OS would presumably block the
    device communication in that case anyway.)
    
    Bug: 898718
    Change-Id: If2bddac4bac519d1aa5aa9cb5d8fdc326297de73
    Reviewed-on: https://chromium-review.googlesource.com/c/1330897
    Commit-Queue: Martin Kreichgauer <martinkr@chromium.org>
    Reviewed-by: default avatarJun Choi <hongjunchoi@chromium.org>
    Reviewed-by: default avatarAdam Langley <agl@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#608127}
    b129ae56
discovery.cc 1.11 KB