commit | 2b7537268999a6853a3908512f898a3d2e4b6558 | [log] [tgz] |
---|---|---|
author | Martin Kreichgauer <martinkr@google.com> | Tue Jul 17 01:06:01 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jul 17 01:06:01 2018 |
tree | fb2f955a3ce770fa2492341b6dabf8642d086f0f | |
parent | f935630e5c264482a6e07b82a899bfed37b6f6d5 [diff] |
device/fido: move request precondition checks into request handlers This moves CheckUserVerificationCompatible() from GetAssertionTask into GetAssertionRequestHandler, and CheckIfAuthenticatorSelectionCriteriaSatisfied() from MakeCredentialTask into MakeCredentialRequestHandler. These preconditions are now checked before dispatching a request onto a FidoAuthenticator. This means, precondition checks now cover all types of authenticators, not just FidoDeviceAuthenticator subtypes. The FidoAuthenticator interface gets a new Options() method to support the preconditions check (and an implementation for Touch ID is added). Corresponding unit tests are moved from the FidoTask test into the matching FidoRequestHandler test. Also, remove AuthenticatorSelectionCriteria from the FidoTask class and from the FidoAuthenticator::MakeCredential() signature, where it has become superfluous due to this change. Bug: 678128 Change-Id: I75259e63a8ef4fda4ecb0d8c9f8ff25f10c077a6 Reviewed-on: https://chromium-review.googlesource.com/1135601 Commit-Queue: Martin Kreichgauer <martinkr@google.com> Reviewed-by: Jun Choi <hongjunchoi@chromium.org> Cr-Commit-Position: refs/heads/master@{#575505}
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 .