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

Issue 414523005: Handles proxy authentication request in ProxyResolvingClientSocket (Closed)

Created:
6 years, 5 months ago by jiayl
Modified:
6 years, 3 months ago
CC:
chromium-reviews, jam, juberti
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Handles proxy authentication request in ProxyResolvingClientSocket. This will make the WebRTC connection work under NTLM/Kerberos using the default credential without prompting the user. BUG=395614 Committed: https://crrev.com/260631aa62e2096045adb0e3780ef562ef12bb4f Cr-Commit-Position: refs/heads/master@{#292428}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Total comments: 3

Patch Set 4 : Check HaveAuth to avoid loop #

Total comments: 5

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -0 lines) Patch
M jingle/glue/proxy_resolving_client_socket.cc View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (0 generated)
jiayl
PTAL as discussed in the bug. I see in WireShark that a new "GET" request ...
6 years, 5 months ago (2014-07-22 22:09:56 UTC) #1
willchan no longer on Chromium
Where can I see where the URLRequestContext is constructed for this?
6 years, 5 months ago (2014-07-22 23:19:50 UTC) #2
jiayl
On 2014/07/22 23:19:50, willchan wrote: > Where can I see where the URLRequestContext is constructed ...
6 years, 5 months ago (2014-07-22 23:23:38 UTC) #3
willchan no longer on Chromium
On 2014/07/22 23:23:38, jiayl wrote: > On 2014/07/22 23:19:50, willchan wrote: > > Where can ...
6 years, 5 months ago (2014-07-22 23:36:21 UTC) #4
jiayl
On 2014/07/22 23:36:21, willchan wrote: > On 2014/07/22 23:23:38, jiayl wrote: > > On 2014/07/22 ...
6 years, 5 months ago (2014-07-22 23:46:06 UTC) #5
willchan no longer on Chromium
https://codereview.chromium.org/414523005/diff/1/jingle/glue/proxy_resolving_client_socket.cc File jingle/glue/proxy_resolving_client_socket.cc (right): https://codereview.chromium.org/414523005/diff/1/jingle/glue/proxy_resolving_client_socket.cc#newcode214 jingle/glue/proxy_resolving_client_socket.cc:214: void ProxyResolvingClientSocket::HttpNetworkTransactionDone(int status) { What's the status here? Does ...
6 years, 5 months ago (2014-07-22 23:46:47 UTC) #6
jiayl
https://codereview.chromium.org/414523005/diff/1/jingle/glue/proxy_resolving_client_socket.cc File jingle/glue/proxy_resolving_client_socket.cc (right): https://codereview.chromium.org/414523005/diff/1/jingle/glue/proxy_resolving_client_socket.cc#newcode214 jingle/glue/proxy_resolving_client_socket.cc:214: void ProxyResolvingClientSocket::HttpNetworkTransactionDone(int status) { On 2014/07/22 23:46:47, willchan wrote: ...
6 years, 5 months ago (2014-07-22 23:47:28 UTC) #7
willchan no longer on Chromium
https://codereview.chromium.org/414523005/diff/1/jingle/glue/proxy_resolving_client_socket.cc File jingle/glue/proxy_resolving_client_socket.cc (right): https://codereview.chromium.org/414523005/diff/1/jingle/glue/proxy_resolving_client_socket.cc#newcode214 jingle/glue/proxy_resolving_client_socket.cc:214: void ProxyResolvingClientSocket::HttpNetworkTransactionDone(int status) { On 2014/07/22 23:47:28, jiayl wrote: ...
6 years, 5 months ago (2014-07-23 00:05:19 UTC) #8
willchan no longer on Chromium
https://codereview.chromium.org/414523005/diff/1/jingle/glue/proxy_resolving_client_socket.cc File jingle/glue/proxy_resolving_client_socket.cc (right): https://codereview.chromium.org/414523005/diff/1/jingle/glue/proxy_resolving_client_socket.cc#newcode214 jingle/glue/proxy_resolving_client_socket.cc:214: void ProxyResolvingClientSocket::HttpNetworkTransactionDone(int status) { On 2014/07/23 00:05:19, willchan wrote: ...
6 years, 5 months ago (2014-07-23 00:08:07 UTC) #9
jiayl
On 2014/07/23 00:08:07, willchan wrote: > https://codereview.chromium.org/414523005/diff/1/jingle/glue/proxy_resolving_client_socket.cc > File jingle/glue/proxy_resolving_client_socket.cc (right): > > https://codereview.chromium.org/414523005/diff/1/jingle/glue/proxy_resolving_client_socket.cc#newcode214 > ...
6 years, 5 months ago (2014-07-23 16:34:10 UTC) #10
willchan no longer on Chromium
+asanka, +rsleevi So, the HTTP auth credentials are shared in the URLRequestContext. Since you appear ...
6 years, 5 months ago (2014-07-23 18:59:23 UTC) #11
jiayl
On 2014/07/23 18:59:23, willchan wrote: > +asanka, +rsleevi > > So, the HTTP auth credentials ...
6 years, 5 months ago (2014-07-23 21:19:33 UTC) #12
willchan no longer on Chromium
Hm, if that's the case, can you double check what URLRequestContext you're getting? Does it ...
6 years, 5 months ago (2014-07-23 21:20:41 UTC) #13
jiayl
They have the save request context. On Wed, Jul 23, 2014 at 2:20 PM, <willchan@chromium.org> ...
6 years, 5 months ago (2014-07-23 21:33:42 UTC) #14
jiayl
Please take a look at the new patch. I figured out that the http credential ...
6 years, 5 months ago (2014-07-23 22:14:54 UTC) #15
willchan no longer on Chromium
Hm, I thought we shared all the http auth state when reusing URLRequestContext, but it ...
6 years, 5 months ago (2014-07-23 22:28:15 UTC) #16
jiayl
On 2014/07/23 22:28:15, willchan wrote: > Hm, I thought we shared all the http auth ...
6 years, 5 months ago (2014-07-23 22:31:39 UTC) #17
willchan no longer on Chromium
Don't do that :) Unless you want to share the socket pools, which sounds like ...
6 years, 5 months ago (2014-07-23 22:45:26 UTC) #18
jiayl
Then how can I share the HttpAuthCache based on the existing interface of net::InitSocketHandleForRawConnect? On ...
6 years, 5 months ago (2014-07-23 22:46:57 UTC) #19
jiayl
Or could I copy the HttpAuthCache from the existing HttpNetworkSession to my new HttpNetworkSession? On ...
6 years, 5 months ago (2014-07-23 22:53:36 UTC) #20
willchan no longer on Chromium
That's why I asked Asanka if we could pull the HttpAuthCache out to the URLRequestContext. ...
6 years, 5 months ago (2014-07-23 22:55:27 UTC) #21
jiayl
That won't make much difference, as HttpAuthCache still needs to be copied from URLRequestContext to ...
6 years, 5 months ago (2014-07-23 23:07:22 UTC) #22
willchan no longer on Chromium
Why not share the object like we do with most members in HttpNetworkSession? On Wed, ...
6 years, 5 months ago (2014-07-23 23:18:41 UTC) #23
jiayl
Ah, I see what you mean. Haha. Sounds good. On Wed, Jul 23, 2014 at ...
6 years, 5 months ago (2014-07-23 23:20:05 UTC) #24
jiayl
asanka@, could you answer willchan's question below? "Hm, I thought we shared all the http ...
6 years, 5 months ago (2014-07-24 16:31:13 UTC) #25
asanka
On 2014/07/24 16:31:13, jiayl wrote: > asanka@, > > could you answer willchan's question below? ...
6 years, 5 months ago (2014-07-24 19:48:41 UTC) #26
jiayl
On 2014/07/24 19:48:41, asanka wrote: > On 2014/07/24 16:31:13, jiayl wrote: > > asanka@, > ...
6 years, 5 months ago (2014-07-24 20:31:41 UTC) #27
Ryan Sleevi
On 2014/07/24 20:31:41, jiayl wrote: > On 2014/07/24 19:48:41, asanka wrote: > > On 2014/07/24 ...
6 years, 5 months ago (2014-07-25 00:51:25 UTC) #28
jiayl
Adding back chromium-reviews which was removed accidentally. On Fri, Jul 25, 2014 at 5:56 PM, ...
6 years, 4 months ago (2014-07-28 17:40:13 UTC) #29
willchan no longer on Chromium
Yeah, you probably want to schedule a meeting with Ryan. But I do support what ...
6 years, 4 months ago (2014-07-28 17:45:06 UTC) #30
jiayl
Ryan made a suggestion for a short-term fix for NTLM: 'HttpAuth::IDENT_SRC_DEFAULT_CREDENTIALS is the magic you ...
6 years, 4 months ago (2014-08-21 23:44:55 UTC) #31
Ryan Sleevi
https://codereview.chromium.org/414523005/diff/60001/jingle/glue/proxy_resolving_client_socket.cc File jingle/glue/proxy_resolving_client_socket.cc (right): https://codereview.chromium.org/414523005/diff/60001/jingle/glue/proxy_resolving_client_socket.cc#newcode63 jingle/glue/proxy_resolving_client_socket.cc:63: session_params.proxy_service = request_context->proxy_service(); If you're using the main URLRequestContext, ...
6 years, 4 months ago (2014-08-23 02:47:13 UTC) #32
jiayl
I uploaded a new patch which seems to be the minimal change to make auth ...
6 years, 3 months ago (2014-08-26 21:21:10 UTC) #33
Ryan Sleevi
https://codereview.chromium.org/414523005/diff/80001/jingle/glue/proxy_resolving_client_socket.cc File jingle/glue/proxy_resolving_client_socket.cc (right): https://codereview.chromium.org/414523005/diff/80001/jingle/glue/proxy_resolving_client_socket.cc#newcode275 jingle/glue/proxy_resolving_client_socket.cc:275: return static_cast<net::ProxyClientSocket*>(transport_->socket()) This strikes me as a dangerous assumption ...
6 years, 3 months ago (2014-08-26 21:41:18 UTC) #34
jiayl
jiayl@chromium.org changed reviewers: + sergeyu@chromium.org
6 years, 3 months ago (2014-08-26 21:59:10 UTC) #35
asanka
https://codereview.chromium.org/414523005/diff/80001/jingle/glue/proxy_resolving_client_socket.cc File jingle/glue/proxy_resolving_client_socket.cc (right): https://codereview.chromium.org/414523005/diff/80001/jingle/glue/proxy_resolving_client_socket.cc#newcode275 jingle/glue/proxy_resolving_client_socket.cc:275: return static_cast<net::ProxyClientSocket*>(transport_->socket()) RestartWithAuth() only makes progress for the case ...
6 years, 3 months ago (2014-08-26 22:34:04 UTC) #36
jiayl
https://codereview.chromium.org/414523005/diff/80001/jingle/glue/proxy_resolving_client_socket.cc File jingle/glue/proxy_resolving_client_socket.cc (right): https://codereview.chromium.org/414523005/diff/80001/jingle/glue/proxy_resolving_client_socket.cc#newcode275 jingle/glue/proxy_resolving_client_socket.cc:275: return static_cast<net::ProxyClientSocket*>(transport_->socket()) What do you suggest to do? Does ...
6 years, 3 months ago (2014-08-26 22:41:48 UTC) #37
Ryan Sleevi
On 2014/08/26 22:34:04, asanka wrote: > https://codereview.chromium.org/414523005/diff/80001/jingle/glue/proxy_resolving_client_socket.cc > File jingle/glue/proxy_resolving_client_socket.cc (right): > > https://codereview.chromium.org/414523005/diff/80001/jingle/glue/proxy_resolving_client_socket.cc#newcode275 > ...
6 years, 3 months ago (2014-08-26 22:49:03 UTC) #38
jiayl
Patchset #4 (id:100001) has been deleted
6 years, 3 months ago (2014-08-27 16:21:06 UTC) #39
jiayl
Fixed the looping problem. PTAL.
6 years, 3 months ago (2014-08-27 16:21:54 UTC) #40
Ryan Sleevi
https://codereview.chromium.org/414523005/diff/120001/jingle/glue/proxy_resolving_client_socket.cc File jingle/glue/proxy_resolving_client_socket.cc (right): https://codereview.chromium.org/414523005/diff/120001/jingle/glue/proxy_resolving_client_socket.cc#newcode279 jingle/glue/proxy_resolving_client_socket.cc:279: if (proxy_socket->GetAuthController()->HaveAuth()) This feels like it's reaching a bit ...
6 years, 3 months ago (2014-08-27 20:44:37 UTC) #41
jiayl
https://codereview.chromium.org/414523005/diff/120001/jingle/glue/proxy_resolving_client_socket.cc File jingle/glue/proxy_resolving_client_socket.cc (right): https://codereview.chromium.org/414523005/diff/120001/jingle/glue/proxy_resolving_client_socket.cc#newcode279 jingle/glue/proxy_resolving_client_socket.cc:279: if (proxy_socket->GetAuthController()->HaveAuth()) This is what Asanka suggested to check. ...
6 years, 3 months ago (2014-08-27 20:46:25 UTC) #42
Ryan Sleevi
https://codereview.chromium.org/414523005/diff/120001/jingle/glue/proxy_resolving_client_socket.cc File jingle/glue/proxy_resolving_client_socket.cc (right): https://codereview.chromium.org/414523005/diff/120001/jingle/glue/proxy_resolving_client_socket.cc#newcode279 jingle/glue/proxy_resolving_client_socket.cc:279: if (proxy_socket->GetAuthController()->HaveAuth()) On 2014/08/27 20:46:25, jiayl wrote: > > ...
6 years, 3 months ago (2014-08-27 20:57:30 UTC) #43
asanka
Code LGTM. It would be awesome to have tests for this. https://codereview.chromium.org/414523005/diff/120001/jingle/glue/proxy_resolving_client_socket.cc File jingle/glue/proxy_resolving_client_socket.cc (right): ...
6 years, 3 months ago (2014-08-28 05:37:25 UTC) #44
Sergey Ulanov
lgtm when my style nit is addressed https://codereview.chromium.org/414523005/diff/120001/jingle/glue/proxy_resolving_client_socket.cc File jingle/glue/proxy_resolving_client_socket.cc (right): https://codereview.chromium.org/414523005/diff/120001/jingle/glue/proxy_resolving_client_socket.cc#newcode281 jingle/glue/proxy_resolving_client_socket.cc:281: else nit: ...
6 years, 3 months ago (2014-08-28 16:46:42 UTC) #45
jiayl
The CQ bit was checked by jiayl@chromium.org
6 years, 3 months ago (2014-08-28 16:52:39 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jiayl@chromium.org/414523005/140001
6 years, 3 months ago (2014-08-28 16:53:27 UTC) #47
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-28 17:50:26 UTC) #48
commit-bot: I haz the power
Committed patchset #5 (id:140001) as fbefe5ba0b64fe1650035807813f8c827b49b057
6 years, 3 months ago (2014-08-28 18:47:33 UTC) #49
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:01:03 UTC) #50
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/260631aa62e2096045adb0e3780ef562ef12bb4f
Cr-Commit-Position: refs/heads/master@{#292428}

Powered by Google App Engine
This is Rietveld 408576698