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

Issue 7008003: Wire in OAuth2 support into non-sandboxed connections in libjingle. (Closed)

Created:
9 years, 7 months ago by awong
Modified:
9 years, 7 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, simonmorris+watch_chromium.org, wez+watch_chromium.org, Paweł Hajdan Jr., dmaclach+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, ajwong+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Wire in OAuth2 support into non-sandboxed connections in libjingle. BUG=none TEST=can connect w/o ClientLogin token. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86685

Patch Set 1 #

Total comments: 32

Patch Set 2 : comments fixed + rebased #

Patch Set 3 : undo manifest change. #

Patch Set 4 : avoid inifite loop on refresh. #

Patch Set 5 : small fix #

Patch Set 6 : win fix #

Patch Set 7 : copyright + rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -44 lines) Patch
A remoting/base/auth_token_util.h View 1 1 chunk +20 lines, -0 lines 0 comments Download
A remoting/base/auth_token_util.cc View 1 1 chunk +34 lines, -0 lines 0 comments Download
A remoting/base/auth_token_util_unittest.cc View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
M remoting/base/constants.h View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M remoting/base/constants.cc View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download
M remoting/client/chromoting_client.cc View 1 chunk +2 lines, -1 line 0 comments Download
M remoting/client/client_config.h View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/client/client_util.cc View 4 chunks +9 lines, -0 lines 0 comments Download
M remoting/client/plugin/chromoting_scriptable_object.h View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M remoting/client/plugin/chromoting_scriptable_object.cc View 1 2 3 4 5 6 4 chunks +11 lines, -3 lines 0 comments Download
M remoting/host/chromoting_host.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M remoting/host/host_config.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M remoting/host/host_config.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M remoting/host/host_plugin.cc View 1 2 3 4 4 chunks +11 lines, -3 lines 0 comments Download
M remoting/host/simple_host_process.cc View 3 chunks +10 lines, -0 lines 0 comments Download
M remoting/jingle_glue/jingle_client.cc View 1 chunk +6 lines, -1 line 0 comments Download
M remoting/protocol/connection_to_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/connection_to_host.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/protocol/protocol_test_client.cc View 1 2 3 4 4 chunks +9 lines, -5 lines 0 comments Download
M remoting/remoting.gyp View 1 2 chunks +3 lines, -0 lines 0 comments Download
M remoting/webapp/me2mom/choice.html View 2 chunks +12 lines, -2 lines 0 comments Download
M remoting/webapp/me2mom/remoting.js View 1 2 3 6 chunks +39 lines, -12 lines 0 comments Download
M remoting/webapp/me2mom/remoting_session.html View 1 chunk +2 lines, -4 lines 0 comments Download
M remoting/webapp/me2mom/remoting_session.js View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
awong
More OAuth2 fun :)
9 years, 7 months ago (2011-05-25 01:06:13 UTC) #1
Wez
Vroom vroom. LGTM with nits. http://codereview.chromium.org/7008003/diff/1/remoting/base/auth_token_util.cc File remoting/base/auth_token_util.cc (right): http://codereview.chromium.org/7008003/diff/1/remoting/base/auth_token_util.cc#newcode18 remoting/base/auth_token_util.cc:18: // TODO(ajwong): Remove this ...
9 years, 7 months ago (2011-05-25 03:57:46 UTC) #2
awong
done. Commit queuing. Thanks! :) http://codereview.chromium.org/7008003/diff/1/remoting/base/auth_token_util.cc File remoting/base/auth_token_util.cc (right): http://codereview.chromium.org/7008003/diff/1/remoting/base/auth_token_util.cc#newcode18 remoting/base/auth_token_util.cc:18: // TODO(ajwong): Remove this ...
9 years, 7 months ago (2011-05-25 16:56:56 UTC) #3
commit-bot: I haz the power
Presubmit check for 7008003-1 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 7 months ago (2011-05-25 16:59:51 UTC) #4
Jamie
http://codereview.chromium.org/7008003/diff/1/remoting/client/client_util.cc File remoting/client/client_util.cc (right): http://codereview.chromium.org/7008003/diff/1/remoting/client/client_util.cc#newcode53 remoting/client/client_util.cc:53: } else if (arg == "--service") { Would it ...
9 years, 7 months ago (2011-05-25 17:04:52 UTC) #5
awong
http://codereview.chromium.org/7008003/diff/1/remoting/webapp/me2mom/remoting.js File remoting/webapp/me2mom/remoting.js (right): http://codereview.chromium.org/7008003/diff/1/remoting/webapp/me2mom/remoting.js#newcode310 remoting/webapp/me2mom/remoting.js:310: tryConnect(accessCode); On 2011/05/25 03:57:46, Wez wrote: > Is there ...
9 years, 7 months ago (2011-05-25 17:07:31 UTC) #6
commit-bot: I haz the power
Commit queue patch verification failed
9 years, 7 months ago (2011-05-25 17:27:20 UTC) #7
awong
http://codereview.chromium.org/7008003/diff/1/remoting/client/client_util.cc File remoting/client/client_util.cc (right): http://codereview.chromium.org/7008003/diff/1/remoting/client/client_util.cc#newcode53 remoting/client/client_util.cc:53: } else if (arg == "--service") { On 2011/05/25 ...
9 years, 7 months ago (2011-05-25 18:00:01 UTC) #8
jamiewalch
9 years, 7 months ago (2011-05-25 20:49:00 UTC) #9
LGTM.

On Wed, May 25, 2011 at 11:00 AM,  <ajwong@chromium.org> wrote:
>
> http://codereview.chromium.org/7008003/diff/1/remoting/client/client_util.cc
> File remoting/client/client_util.cc (right):
>
>
http://codereview.chromium.org/7008003/diff/1/remoting/client/client_util.cc#...
> remoting/client/client_util.cc:53: } else if (arg == "--service") {
> On 2011/05/25 17:04:52, Jamie wrote:
>>
>> Would it be more consistent to use the colon-separated form as the
>
> value for
>>
>> --token?
>
> Yes...I just wasn't clear on what script might be using this, etc.  So I
> didn't want to change the existing API yet.
>
>> Actually, come to think of it, why are we using a colon-separated
>
> string anyway?
>>
>> Why not specify the service as a separate parameter in the connect()
>
> API as
>>
>> well?
>
> I thought about it, but decided that since we hadn't really settled on a
> plan for the connect() API call, to do it this way for now.  This
> maintains backwards compat for the time being.
>
> http://codereview.chromium.org/7008003/diff/1/remoting/host/host_plugin.cc
> File remoting/host/host_plugin.cc (right):
>
>
http://codereview.chromium.org/7008003/diff/1/remoting/host/host_plugin.cc#ne...
> remoting/host/host_plugin.cc:62: // Auth token should be in the format
> "service:token".  And example
> On 2011/05/25 17:04:52, Jamie wrote:
>>
>> Should we name the parameter explicitly in the comment? ie,
>> |auth_token_with_service| instead of "Auth token".
>
> Done.
>
>
http://codereview.chromium.org/7008003/diff/1/remoting/host/host_plugin.cc#ne...
> remoting/host/host_plugin.cc:403: if (auth_token.empty()) {
> On 2011/05/25 17:04:52, Jamie wrote:
>>
>> Do we need a check for an empty service? The string ":blah" would
>
> produce one I
>>
>> think.
>
> I'm intentionally not doing that for now so I don't break all our
> existing javascript.
>
>
http://codereview.chromium.org/7008003/diff/1/remoting/webapp/me2mom/choice.html
> File remoting/webapp/me2mom/choice.html (right):
>
>
http://codereview.chromium.org/7008003/diff/1/remoting/webapp/me2mom/choice.h...
> remoting/webapp/me2mom/choice.html:45: <div id="xmpp_div"
> style="display:none;">
> On 2011/05/25 17:04:52, Jamie wrote:
>>
>> Does this div ever get shown?
>
> nope.  I didn't quite want to delete it completely until we were sure
> the OAuth2 stuff worked. This way, someone can take the exist webapp,
> pop open the inspector, and just enable the XMPP div to get the tokens.
> It should go away soon though (eg., next week).
>
> http://codereview.chromium.org/7008003/
>

Powered by Google App Engine
This is Rietveld 408576698