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

Issue 2835473002: Chromad: Allow offline login. (Closed)

Created:
3 years, 8 months ago by Roman Sorokin (ftl)
Modified:
3 years, 8 months ago
Reviewers:
xiyuan
CC:
chromium-reviews, hashimoto+watch_chromium.org, alemate+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Chromad: Allow offline login. When user types password on the pod screen it tries to unlock cryptohome and authenticate against Active Directory server (get TGT) at the same time. In case decrypting fail - it cleans authpolicyd state (by restart). The point of Active Directory authentication is to get TGT (if possible) with the password user typed. Failure here is OK - that could mean e.g. server is not reachable. We don't want to have user wait for the Active Directory Authentication on the pod screen. In the follow-up CL we're gonna to create KeyedService inside the session which would get status about last authentication and handle possible failures (e.g. suggest to re-login in case server became reachable) BUG=662400 TEST=manual Review-Url: https://codereview.chromium.org/2835473002 Cr-Commit-Position: refs/heads/master@{#466664} Committed: https://chromium.googlesource.com/chromium/src/+/41f61625dbac455f9e5876fc3ccbbb4952f21647

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fix tests #

Patch Set 3 : Fix more tests #

Patch Set 4 : Rebase+fix test compilation #

Total comments: 2

Patch Set 5 : Add TryAuthenticateUser call #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -22 lines) Patch
M chrome/browser/chromeos/login/existing_user_controller.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 4 6 chunks +26 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller_browsertest.cc View 1 2 3 2 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/screens/user_selection_screen.cc View 3 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chromeos/dbus/auth_policy_client.h View 1 chunk +6 lines, -3 lines 0 comments Download
M chromeos/dbus/auth_policy_client.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/dbus/fake_auth_policy_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/dbus/fake_auth_policy_client.cc View 2 chunks +7 lines, -2 lines 0 comments Download
M chromeos/dbus/fake_auth_policy_client_unittest.cc View 1 3 chunks +17 lines, -2 lines 0 comments Download
M chromeos/login/auth/authpolicy_login_helper.h View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M chromeos/login/auth/authpolicy_login_helper.cc View 1 2 3 4 2 chunks +16 lines, -1 line 0 comments Download
M chromeos/login/auth/cryptohome_authenticator.cc View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 33 (25 generated)
Roman Sorokin (ftl)
Hey Xiyuan, PTAL. Thanks!
3 years, 8 months ago (2017-04-20 16:19:07 UTC) #4
xiyuan
https://codereview.chromium.org/2835473002/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://codereview.chromium.org/2835473002/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc#newcode1468 chrome/browser/chromeos/login/existing_user_controller.cc:1468: if (error != authpolicy::ERROR_NONE) We would do nothing on ...
3 years, 8 months ago (2017-04-20 17:03:24 UTC) #9
Roman Sorokin (ftl)
Hey Xiyuan, thanks for the fast review! PTAL https://codereview.chromium.org/2835473002/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://codereview.chromium.org/2835473002/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc#newcode1468 chrome/browser/chromeos/login/existing_user_controller.cc:1468: if ...
3 years, 8 months ago (2017-04-21 09:07:34 UTC) #15
xiyuan
https://codereview.chromium.org/2835473002/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://codereview.chromium.org/2835473002/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc#newcode1468 chrome/browser/chromeos/login/existing_user_controller.cc:1468: if (error != authpolicy::ERROR_NONE) On 2017/04/21 09:07:34, Roman Sorokin ...
3 years, 8 months ago (2017-04-21 14:48:14 UTC) #22
Roman Sorokin (ftl)
Thanks Xiyuan! Please take another look! https://codereview.chromium.org/2835473002/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://codereview.chromium.org/2835473002/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc#newcode1468 chrome/browser/chromeos/login/existing_user_controller.cc:1468: if (error != ...
3 years, 8 months ago (2017-04-24 16:21:28 UTC) #25
xiyuan
lgtm
3 years, 8 months ago (2017-04-24 16:23:25 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2835473002/80001
3 years, 8 months ago (2017-04-24 16:55:29 UTC) #30
commit-bot: I haz the power
3 years, 8 months ago (2017-04-24 17:03:53 UTC) #33
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/41f61625dbac455f9e5876fc3ccb...

Powered by Google App Engine
This is Rietveld 408576698