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

Issue 9301003: Change X-Auto-Login implementation to use OAuth token. (Closed)

Created:
8 years, 10 months ago by qsr
Modified:
8 years, 10 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Change X-Auto-Login implementation to use OAuth token. X-Auto-Login implementation was using client login to get an ubertoken. The problem is that SID/LSID are short lived, and that token generated this way have the same timestamp as the original SID/LSID. Because TokenService generate also an Oauth refresh token, change the implementation to use this token to generate ubertokens. BUG=none TEST=unit Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120746

Patch Set 1 #

Patch Set 2 : Tests #

Patch Set 3 : With comments. #

Total comments: 23

Patch Set 4 : Follow review #

Patch Set 5 : Remove unused code #

Patch Set 6 : Follow review #

Patch Set 7 : Follow review #

Total comments: 2

Patch Set 8 : Copyright. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+566 lines, -201 lines) Patch
M chrome/browser/signin/token_service_unittest.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/signin/token_service_unittest.cc View 1 16 chunks +150 lines, -146 lines 0 comments Download
A chrome/browser/signin/ubertoken_fetcher.h View 1 2 3 4 5 6 1 chunk +82 lines, -0 lines 0 comments Download
A chrome/browser/signin/ubertoken_fetcher.cc View 1 2 3 4 5 6 1 chunk +114 lines, -0 lines 0 comments Download
A chrome/browser/signin/ubertoken_fetcher_unittest.cc View 1 2 3 4 5 1 chunk +104 lines, -0 lines 0 comments Download
M chrome/browser/ui/auto_login_info_bar_delegate.cc View 1 2 3 5 chunks +23 lines, -49 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/net/gaia/gaia_auth_consumer.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -1 line 0 comments Download
M chrome/common/net/gaia/gaia_auth_fetcher.h View 1 2 3 4 5 6 7 6 chunks +13 lines, -1 line 0 comments Download
M chrome/common/net/gaia/gaia_auth_fetcher.cc View 1 2 3 4 5 7 chunks +41 lines, -1 line 0 comments Download
M chrome/common/net/gaia/gaia_auth_fetcher_unittest.cc View 1 2 3 4 5 6 7 6 chunks +31 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
qsr
sky: for browser/ui tim: for ownership on signin roger: you wrote the initial X-Auto-Login code.
8 years, 10 months ago (2012-01-31 13:57:43 UTC) #1
qsr
Republishing because the first title was wrong, and the message might well have been lost. ...
8 years, 10 months ago (2012-01-31 13:59:47 UTC) #2
sky
https://chromiumcodereview.appspot.com/9301003/diff/4002/chrome/browser/ui/auto_login_info_bar_delegate.cc File chrome/browser/ui/auto_login_info_bar_delegate.cc (right): https://chromiumcodereview.appspot.com/9301003/diff/4002/chrome/browser/ui/auto_login_info_bar_delegate.cc#newcode89 chrome/browser/ui/auto_login_info_bar_delegate.cc:89: static_cast<Profile*>(navigation_controller_->GetBrowserContext()), Profile::FromBrowserContext. That said, it's preferable to pass in ...
8 years, 10 months ago (2012-01-31 16:54:41 UTC) #3
Roger Tawa OOO till Jul 10th
Hi Benjamin, A few comments below. http://r815-84cc73cbe282.chromiumcodereview.appspot.com/9301003/diff/4002/chrome/browser/signin/ubertoken_fetcher.cc File chrome/browser/signin/ubertoken_fetcher.cc (right): http://r815-84cc73cbe282.chromiumcodereview.appspot.com/9301003/diff/4002/chrome/browser/signin/ubertoken_fetcher.cc#newcode18 chrome/browser/signin/ubertoken_fetcher.cc:18: "https://accounts.google.com/OAuthLogin?source=chrome&issueuberauth=1"; i think ...
8 years, 10 months ago (2012-01-31 21:38:23 UTC) #4
qsr
http://codereview.chromium.org/9301003/diff/4002/chrome/browser/signin/ubertoken_fetcher.cc File chrome/browser/signin/ubertoken_fetcher.cc (right): http://codereview.chromium.org/9301003/diff/4002/chrome/browser/signin/ubertoken_fetcher.cc#newcode18 chrome/browser/signin/ubertoken_fetcher.cc:18: "https://accounts.google.com/OAuthLogin?source=chrome&issueuberauth=1"; On 2012/01/31 21:38:23, Roger Tawa wrote: > i ...
8 years, 10 months ago (2012-02-01 14:59:18 UTC) #5
Roger Tawa OOO till Jul 10th
Hi Benjamin, Some more comments below. Thanks. http://r807-c864efbf45b4.chromiumcodereview.appspot.com/9301003/diff/4002/chrome/browser/signin/ubertoken_fetcher.cc File chrome/browser/signin/ubertoken_fetcher.cc (right): http://r807-c864efbf45b4.chromiumcodereview.appspot.com/9301003/diff/4002/chrome/browser/signin/ubertoken_fetcher.cc#newcode100 chrome/browser/signin/ubertoken_fetcher.cc:100: url_fetcher_->Start(); On ...
8 years, 10 months ago (2012-02-01 15:29:54 UTC) #6
qsr
PTAL http://codereview.chromium.org/9301003/diff/4002/chrome/browser/signin/ubertoken_fetcher.cc File chrome/browser/signin/ubertoken_fetcher.cc (right): http://codereview.chromium.org/9301003/diff/4002/chrome/browser/signin/ubertoken_fetcher.cc#newcode100 chrome/browser/signin/ubertoken_fetcher.cc:100: url_fetcher_->Start(); On 2012/02/01 15:29:55, Roger Tawa wrote: > ...
8 years, 10 months ago (2012-02-01 18:28:09 UTC) #7
Roger Tawa OOO till Jul 10th
Thanks Benjamin, that looks great. One more question below. http://codereview.chromium.org/9301003/diff/13002/chrome/common/net/gaia/gaia_auth_fetcher.cc File chrome/common/net/gaia/gaia_auth_fetcher.cc (right): http://codereview.chromium.org/9301003/diff/13002/chrome/common/net/gaia/gaia_auth_fetcher.cc#newcode86 chrome/common/net/gaia/gaia_auth_fetcher.cc:86: ...
8 years, 10 months ago (2012-02-01 21:47:14 UTC) #8
qsr
tim: PING? http://codereview.chromium.org/9301003/diff/13002/chrome/common/net/gaia/gaia_auth_fetcher.cc File chrome/common/net/gaia/gaia_auth_fetcher.cc (right): http://codereview.chromium.org/9301003/diff/13002/chrome/common/net/gaia/gaia_auth_fetcher.cc#newcode86 chrome/common/net/gaia/gaia_auth_fetcher.cc:86: "issueuberauth=1"; On 2012/02/01 21:47:14, Roger Tawa wrote: ...
8 years, 10 months ago (2012-02-02 09:26:55 UTC) #9
Roger Tawa OOO till Jul 10th
lgtm Thanks Benjamin.
8 years, 10 months ago (2012-02-02 14:27:32 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/9301003/13002
8 years, 10 months ago (2012-02-02 16:36:23 UTC) #11
commit-bot: I haz the power
Presubmit check for 9301003-13002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 10 months ago (2012-02-02 16:36:30 UTC) #12
qsr
sky: PING?
8 years, 10 months ago (2012-02-02 17:27:34 UTC) #13
tim (not reviewing)
signin/ LGTM
8 years, 10 months ago (2012-02-02 18:23:37 UTC) #14
sky
LGTM
8 years, 10 months ago (2012-02-03 17:50:23 UTC) #15
Peter Kasting
There are no significant changes to usage of the infobar classes/functions so you don't need ...
8 years, 10 months ago (2012-02-03 18:10:29 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/9301003/13002
8 years, 10 months ago (2012-02-06 08:48:12 UTC) #17
commit-bot: I haz the power
Try job failure for 9301003-13002 (retry) (retry) on mac_rel for step "test_shell_tests". It's a second ...
8 years, 10 months ago (2012-02-06 12:50:26 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/9301003/13002
8 years, 10 months ago (2012-02-06 15:43:56 UTC) #19
commit-bot: I haz the power
8 years, 10 months ago (2012-02-07 01:54:45 UTC) #20
The commit queue went berserk retrying too often for a
seemingly flaky test. Builder is mac_rel, revision is 120571, job name
was 9301003-13002 (previous was lost) (previous was lost) (previous was lost)
(previous was lost).

Powered by Google App Engine
This is Rietveld 408576698