Commit 9639de07 authored by Casey Piper's avatar Casey Piper Committed by Commit Bot

Add logs when requests are proxied to WebAuthn

Whenever a request is received by cryptotoken,
and that request is then proxied to WebAuthn,
log this instance to the background console.

Change-Id: I180f6fbbd3b512dab9f4549742b52f97a36542f1
Reviewed-on: https://chromium-review.googlesource.com/c/1371084Reviewed-by: default avatarKim Paulhamus <kpaulhamus@chromium.org>
Commit-Queue: Casey Piper <piperc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615418}
parent c2336277
...@@ -830,6 +830,7 @@ Enroller.prototype.sendEnrollRequestToHelper_ = function() { ...@@ -830,6 +830,7 @@ Enroller.prototype.sendEnrollRequestToHelper_ = function() {
if (v2Challenge && shouldUseWebAuthn) { if (v2Challenge && shouldUseWebAuthn) {
// If we can proxy to WebAuthn, send the request via WebAuthn. // If we can proxy to WebAuthn, send the request via WebAuthn.
console.log('Proxying registration request to WebAuthn');
this.doRegisterWebAuthn_(enrollAppIds[0], v2Challenge, request); this.doRegisterWebAuthn_(enrollAppIds[0], v2Challenge, request);
} else { } else {
self.handler_ = self.handler_ =
......
...@@ -465,6 +465,7 @@ Signer.prototype.doSign_ = async function() { ...@@ -465,6 +465,7 @@ Signer.prototype.doSign_ = async function() {
}).then(shouldUseWebAuthn => { }).then(shouldUseWebAuthn => {
if (shouldUseWebAuthn) { if (shouldUseWebAuthn) {
// If we can proxy to WebAuthn, send the request via WebAuthn. // If we can proxy to WebAuthn, send the request via WebAuthn.
console.log('Proxying sign request to WebAuthn');
return this.doSignWebAuthn_(encodedChallenges, challengeVal); return this.doSignWebAuthn_(encodedChallenges, challengeVal);
} }
var request = makeSignHelperRequest( var request = makeSignHelperRequest(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment