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

Issue 447013003: Use GAIA headers to distinguish between GAIA and SAML IdP cookies (Closed)

Created:
6 years, 4 months ago by bartfab (slow)
Modified:
6 years, 4 months ago
CC:
chromium-reviews, arv+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Use GAIA headers to distinguish between GAIA and SAML IdP cookies During login, GAIA sends the "Google-Accounts-SAML=Start" and "Google-Accounts-SAML=End" headers to indicate when a redirect to a SAML IdP starts and ends. This CL uses these headers to distinguish between cookies set by GAIA and the IdP: * Any cookies set between the start and the end of the redirect were created by the IdP. * Any cookies set before the start or after the end of the redirect were created by GAIA. This allows cookies set by the IdP to be copied to the user's session while ensuring that GAIA cookies are not copied (these need to be transferred to the session via GAIA's /MergeSession API). BUG=381123 TEST=Extended browser test; also manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288068

Patch Set 1 #

Total comments: 4

Patch Set 2 : Clarified comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -74 lines) Patch
M chrome/browser/chromeos/login/profile_auth_data.cc View 6 chunks +51 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/login/saml/saml_browsertest.cc View 14 chunks +84 lines, -46 lines 0 comments Download
M chrome/browser/resources/gaia_auth/background.js View 1 2 chunks +74 lines, -19 lines 0 comments Download
M google_apis/gaia/fake_gaia.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
bartfab (slow)
Hi Pavel, Could you review: chrome/browser/chromeos/login/profile_auth_data.cc chrome/browser/chromeos/login/saml/saml_browsertest.cc Hi Xiyuan, Could you review: chrome/browser/resources/gaia_auth/background.js Hi Roger, ...
6 years, 4 months ago (2014-08-06 19:57:35 UTC) #1
Roger Tawa OOO till Jul 10th
lgtm
6 years, 4 months ago (2014-08-06 20:48:54 UTC) #2
xiyuan
lgtm https://codereview.chromium.org/447013003/diff/1/chrome/browser/resources/gaia_auth/background.js File chrome/browser/resources/gaia_auth/background.js (right): https://codereview.chromium.org/447013003/diff/1/chrome/browser/resources/gaia_auth/background.js#newcode311 chrome/browser/resources/gaia_auth/background.js:311: // prepend headers. It is only possible to ...
6 years, 4 months ago (2014-08-06 21:20:12 UTC) #3
dzhioev (left Google)
https://codereview.chromium.org/447013003/diff/1/chrome/browser/chromeos/login/profile_auth_data.cc File chrome/browser/chromeos/login/profile_auth_data.cc (right): https://codereview.chromium.org/447013003/diff/1/chrome/browser/chromeos/login/profile_auth_data.cc#newcode274 chrome/browser/chromeos/login/profile_auth_data.cc:274: I can't understand how does this change help to ...
6 years, 4 months ago (2014-08-07 09:17:44 UTC) #4
bartfab (slow)
On 2014/08/07 09:17:44, dzhioev wrote: > https://codereview.chromium.org/447013003/diff/1/chrome/browser/chromeos/login/profile_auth_data.cc > File chrome/browser/chromeos/login/profile_auth_data.cc (right): > > https://codereview.chromium.org/447013003/diff/1/chrome/browser/chromeos/login/profile_auth_data.cc#newcode274 > ...
6 years, 4 months ago (2014-08-07 09:40:28 UTC) #5
dzhioev (left Google)
On 2014/08/07 09:40:28, bartfab wrote: > On 2014/08/07 09:17:44, dzhioev wrote: > > > https://codereview.chromium.org/447013003/diff/1/chrome/browser/chromeos/login/profile_auth_data.cc ...
6 years, 4 months ago (2014-08-07 11:26:47 UTC) #6
bartfab (slow)
https://codereview.chromium.org/447013003/diff/1/chrome/browser/chromeos/login/profile_auth_data.cc File chrome/browser/chromeos/login/profile_auth_data.cc (right): https://codereview.chromium.org/447013003/diff/1/chrome/browser/chromeos/login/profile_auth_data.cc#newcode274 chrome/browser/chromeos/login/profile_auth_data.cc:274: On 2014/08/07 09:17:44, dzhioev wrote: > I can't understand ...
6 years, 4 months ago (2014-08-07 11:59:45 UTC) #7
bartfab (slow)
The CQ bit was checked by bartfab@chromium.org
6 years, 4 months ago (2014-08-07 11:59:49 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/447013003/20001
6 years, 4 months ago (2014-08-07 12:00:23 UTC) #9
commit-bot: I haz the power
6 years, 4 months ago (2014-08-07 16:14:20 UTC) #10
Message was sent while issue was closed.
Change committed as 288068

Powered by Google App Engine
This is Rietveld 408576698