Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(738)

Issue 12518027: Protocol / client plugin changes to support interactively asking for a PIN (Closed)

Created:
7 years, 9 months ago by rmsousa
Modified:
7 years, 9 months ago
Reviewers:
Sergey Ulanov, Wez
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Protocol / client plugin changes to support interactively asking for a PIN. This has a few special cases, to be able to deal with all sorts of combinations of Me2Me/It2Me/old-plugin/old-webapp/old-host. The idea is: A webapp that supports asking for PINs asynchronously will explicitly notify the plugin of that. Older webapps (or It2Me) will send the passphrase directly on connect. The negotiating authenticator, instead of immediately trying to send the first SPAKE message, first sends a message with the supported methods to the host, and only when the host replies with the specific method it tries to create the authenticator. If there is a PinFetcher interface, it tries to use a PinClientAuthenticator (a thin layer on top of V2Authenticator that takes care of asynchronously asking for PIN), otherwise it uses V2Authenticator directly with the pre-provided pass phrase. This also adds support for authenticators that can't be created in a particular state (e.g. ones for which the first message must go in one particular direction). The NegotiatingAuthenticator takes care of sending blank messages/ignoring those messages as appropriate. BUG=115899 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190056

Patch Set 1 #

Total comments: 28

Patch Set 2 : Reviewer comments #

Patch Set 3 : Missing remoting.gyp #

Patch Set 4 : Changed Pin-related objects to callbacks #

Total comments: 39

Patch Set 5 : Pin -> Secret, comment clarifications. #

Total comments: 25

Patch Set 6 : Reviewer comments #

Total comments: 6

Patch Set 7 : Fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -111 lines) Patch
M remoting/client/chromoting_client.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M remoting/client/client_config.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M remoting/client/plugin/chromoting_instance.h View 1 2 3 4 5 6 5 chunks +31 lines, -14 lines 0 comments Download
M remoting/client/plugin/chromoting_instance.cc View 1 2 3 4 5 6 6 chunks +51 lines, -3 lines 0 comments Download
M remoting/protocol/negotiating_authenticator.h View 1 2 3 4 5 5 chunks +71 lines, -6 lines 0 comments Download
M remoting/protocol/negotiating_authenticator.cc View 1 2 3 4 5 6 chunks +65 lines, -48 lines 0 comments Download
M remoting/protocol/negotiating_authenticator_unittest.cc View 1 2 3 4 3 chunks +31 lines, -37 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
rmsousa
See https://codereview.chromium.org/12867004/ for the associated WebApp changes. Please take a look at the NegotiatingAuthenticator changes, ...
7 years, 9 months ago (2013-03-16 01:01:53 UTC) #1
Sergey Ulanov
> This also adds support for authenticators that > can't be created in a particular ...
7 years, 9 months ago (2013-03-17 21:29:21 UTC) #2
rmsousa
> This also adds support for authenticators that > can't be created in a particular ...
7 years, 9 months ago (2013-03-18 21:07:26 UTC) #3
Sergey Ulanov
I'm still not convinced we need the new interfaces. https://codereview.chromium.org/12518027/diff/1/remoting/protocol/negotiating_authenticator.cc File remoting/protocol/negotiating_authenticator.cc (right): https://codereview.chromium.org/12518027/diff/1/remoting/protocol/negotiating_authenticator.cc#newcode247 remoting/protocol/negotiating_authenticator.cc:247: ...
7 years, 9 months ago (2013-03-19 02:44:53 UTC) #4
rmsousa
I removed the PinFetcher* classes, and moved everything to callbacks. At this point, PinClientAuthenticator became ...
7 years, 9 months ago (2013-03-19 23:14:31 UTC) #5
Wez
Some initial comments. https://codereview.chromium.org/12518027/diff/18001/remoting/protocol/negotiating_authenticator.cc File remoting/protocol/negotiating_authenticator.cc (right): https://codereview.chromium.org/12518027/diff/18001/remoting/protocol/negotiating_authenticator.cc#newcode247 remoting/protocol/negotiating_authenticator.cc:247: weak_factory_.GetWeakPtr(), preferred_initial_state, resume_callback)); This is a ...
7 years, 9 months ago (2013-03-20 01:36:31 UTC) #6
rmsousa
https://codereview.chromium.org/12518027/diff/18001/remoting/protocol/negotiating_authenticator.cc File remoting/protocol/negotiating_authenticator.cc (right): https://codereview.chromium.org/12518027/diff/18001/remoting/protocol/negotiating_authenticator.cc#newcode247 remoting/protocol/negotiating_authenticator.cc:247: weak_factory_.GetWeakPtr(), preferred_initial_state, resume_callback)); On 2013/03/20 01:36:31, Wez wrote: > ...
7 years, 9 months ago (2013-03-20 04:54:54 UTC) #7
Sergey Ulanov
https://codereview.chromium.org/12518027/diff/30002/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/12518027/diff/30002/remoting/client/plugin/chromoting_instance.cc#newcode697 remoting/client/plugin/chromoting_instance.cc:697: VLOG(1) << nit: operator << should be wrapped when ...
7 years, 9 months ago (2013-03-20 05:49:05 UTC) #8
rmsousa
https://codereview.chromium.org/12518027/diff/30002/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/12518027/diff/30002/remoting/client/plugin/chromoting_instance.cc#newcode697 remoting/client/plugin/chromoting_instance.cc:697: VLOG(1) << On 2013/03/20 05:49:05, sergeyu wrote: > nit: ...
7 years, 9 months ago (2013-03-20 20:17:16 UTC) #9
Sergey Ulanov
LGTM. Thanks! https://codereview.chromium.org/12518027/diff/35001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/12518027/diff/35001/remoting/client/plugin/chromoting_instance.cc#newcode288 remoting/client/plugin/chromoting_instance.cc:288: LOG(ERROR) << "Invalid connect() data."; nit: "sharedSecret ...
7 years, 9 months ago (2013-03-20 20:33:39 UTC) #10
rmsousa
https://codereview.chromium.org/12518027/diff/35001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/12518027/diff/35001/remoting/client/plugin/chromoting_instance.cc#newcode288 remoting/client/plugin/chromoting_instance.cc:288: LOG(ERROR) << "Invalid connect() data."; On 2013/03/20 20:33:40, sergeyu ...
7 years, 9 months ago (2013-03-20 20:50:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmsousa@chromium.org/12518027/40001
7 years, 9 months ago (2013-03-20 21:02:26 UTC) #12
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) net_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=125261
7 years, 9 months ago (2013-03-21 01:28:09 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmsousa@chromium.org/12518027/40001
7 years, 9 months ago (2013-03-21 20:28:29 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmsousa@chromium.org/12518027/40001
7 years, 9 months ago (2013-03-22 18:19:25 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmsousa@chromium.org/12518027/40001
7 years, 9 months ago (2013-03-23 14:56:34 UTC) #16
commit-bot: I haz the power
7 years, 9 months ago (2013-03-23 18:39:17 UTC) #17
Message was sent while issue was closed.
Change committed as 190056

Powered by Google App Engine
This is Rietveld 408576698