commit | 45fa2bc178d5f5df6381ae274eaf6127932675b9 | [log] [tgz] |
---|---|---|
author | Martin Kreichgauer <martinkr@google.com> | Mon Jul 16 23:08:05 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Jul 16 23:08:05 2018 |
tree | 29a0a01a0f511d3fa695fca9630fdeb846a0af95 | |
parent | 39d823d709c6cd01eb8647e6aa466eb9e6171520 [diff] |
device/fido: move protocol detection into FidoDiscovery This moves the AuthenticatorGetInfo request to determine whether an authenticator supports the kCtap ProtocolVersion out of FidoTask and into FidoDiscovery. As a result, no half-initialized FidoDevice instances are passed into the FidoRequestHandler and FidoTask subclasses. This is going to make it easier to centralize checking of certain request preconditions, like AuthenticatorSelectionCriteria e.g.. Currently checking for those is handled within FidoTask (after completion of the AuthenticatorGetInfo dance), and therefore TouchIdAuthenticator evades it. Determining FidoDevice capabilities upfront allows us to move these checks out of FidoTask such that TouchIdAuthenticator can be covered by them. Bug: 678128 Change-Id: Ie0f9101eeca5ee6d0fbf2d7f8885d9a1dc46d032 Reviewed-on: https://chromium-review.googlesource.com/1135120 Commit-Queue: Martin Kreichgauer <martinkr@google.com> Reviewed-by: Jun Choi <hongjunchoi@chromium.org> Cr-Commit-Position: refs/heads/master@{#575466}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .