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

Issue 12905012: Webapp changes to support third party authentication (Closed)

Created:
7 years, 9 months ago by rmsousa
Modified:
7 years, 8 months ago
Reviewers:
Jamie
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Webapp changes to support third party authentication This uses an OAuth flow on the server to fetch the token and shared secret. There are two implementations for this: * The current one manually opens a tab and asks for a redirect to a blank page in talkgadget, which we content-script to sendmessage the token/secret back to the extension (fairly similar to our OAuth trampoline) * Once we're running on appsv2, and identity is out of experimental, we can use launchWebAuthFlow to do this. This includes an interstitial to ask for an optional permission to the given host. The window.open method doesn't actually need this, but the identity API one does, so I thought I'd leave it in to make its behavior match closely the one of the identity API, which is the one we'll use in the future. Most of the code is shared between these two versions, the only different pieces are the mechanics to open the window/launchWebFlow, and to send the redirectedUrl back to the webapp for parsing. BUG=115899 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=196580

Patch Set 1 #

Total comments: 60

Patch Set 2 : Reviewer comments #

Total comments: 2

Patch Set 3 : Better terminology explanation #

Patch Set 4 : Update UI #

Total comments: 2

Patch Set 5 : Add token URL validation, refactor #

Total comments: 12

Patch Set 6 : Move host permissions ui to a separate file #

Patch Set 7 : Rebase, update patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+495 lines, -43 lines) Patch
M remoting/remoting.gyp View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M remoting/resources/remoting_strings.grd View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M remoting/webapp/appsv2.patch View 1 2 3 4 5 6 2 chunks +20 lines, -15 lines 0 comments Download
M remoting/webapp/build-webapp.py View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M remoting/webapp/client_plugin.js View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M remoting/webapp/client_plugin_async.js View 1 2 3 4 5 6 3 chunks +32 lines, -0 lines 0 comments Download
M remoting/webapp/client_screen.js View 1 2 3 4 5 2 chunks +14 lines, -1 line 0 comments Download
M remoting/webapp/client_session.js View 1 2 3 4 5 6 6 chunks +19 lines, -7 lines 0 comments Download
A remoting/webapp/cs_third_party_auth_trampoline.js View 1 chunk +10 lines, -0 lines 0 comments Download
M remoting/webapp/host.js View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/webapp/jscompiler_hacks.js View 1 3 chunks +29 lines, -1 line 0 comments Download
M remoting/webapp/main.html View 1 2 3 4 5 2 chunks +17 lines, -0 lines 0 comments Download
M remoting/webapp/manifest.json View 1 2 3 4 5 2 chunks +10 lines, -1 line 0 comments Download
M remoting/webapp/oauth2.js View 1 chunk +1 line, -11 lines 0 comments Download
M remoting/webapp/plugin_settings.js View 1 chunk +5 lines, -0 lines 0 comments Download
M remoting/webapp/remoting.js View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M remoting/webapp/session_connector.js View 1 2 3 4 4 chunks +19 lines, -7 lines 0 comments Download
A remoting/webapp/third_party_host_permissions.js View 1 2 3 4 5 1 chunk +107 lines, -0 lines 0 comments Download
A remoting/webapp/third_party_token_fetcher.js View 1 2 3 4 5 1 chunk +171 lines, -0 lines 0 comments Download
M remoting/webapp/ui_mode.js View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
rmsousa
The associated client plugin changes are at https://codereview.chromium.org/12475020/ This is missing the part where we ...
7 years, 9 months ago (2013-03-27 23:47:21 UTC) #1
Jamie
https://codereview.chromium.org/12905012/diff/1/remoting/resources/remoting_strings.grd File remoting/resources/remoting_strings.grd (right): https://codereview.chromium.org/12905012/diff/1/remoting/resources/remoting_strings.grd#newcode147 remoting/resources/remoting_strings.grd:147: </message> I've referred elsewhere to the app simply as ...
7 years, 9 months ago (2013-03-28 23:29:36 UTC) #2
rmsousa
https://codereview.chromium.org/12905012/diff/1/remoting/webapp/client_session.js File remoting/webapp/client_session.js (right): https://codereview.chromium.org/12905012/diff/1/remoting/webapp/client_session.js#newcode715 remoting/webapp/client_session.js:715: var that = this; On 2013/03/28 23:29:36, Jamie wrote: ...
7 years, 8 months ago (2013-03-29 04:08:21 UTC) #3
Jamie
https://codereview.chromium.org/12905012/diff/1/remoting/resources/remoting_strings.grd File remoting/resources/remoting_strings.grd (right): https://codereview.chromium.org/12905012/diff/1/remoting/resources/remoting_strings.grd#newcode147 remoting/resources/remoting_strings.grd:147: </message> On 2013/03/28 23:29:36, Jamie wrote: > I've referred ...
7 years, 8 months ago (2013-03-29 18:19:23 UTC) #4
rmsousa
https://codereview.chromium.org/12905012/diff/1/remoting/resources/remoting_strings.grd File remoting/resources/remoting_strings.grd (right): https://codereview.chromium.org/12905012/diff/1/remoting/resources/remoting_strings.grd#newcode147 remoting/resources/remoting_strings.grd:147: </message> On 2013/03/29 18:19:24, Jamie wrote: > On 2013/03/28 ...
7 years, 8 months ago (2013-03-29 20:55:48 UTC) #5
Jamie
Looks good once the string review is finalized and the patch has been updated. https://codereview.chromium.org/12905012/diff/1/remoting/resources/remoting_strings.grd ...
7 years, 8 months ago (2013-03-29 21:34:53 UTC) #6
rmsousa
PTAL (again) I've added the verification of the token URL against the domain-permitted patterns provided ...
7 years, 8 months ago (2013-04-15 23:56:57 UTC) #7
Jamie
https://codereview.chromium.org/12905012/diff/29001/remoting/resources/remoting_strings.grd File remoting/resources/remoting_strings.grd (right): https://codereview.chromium.org/12905012/diff/29001/remoting/resources/remoting_strings.grd#newcode146 remoting/resources/remoting_strings.grd:146: This remote host requires you to authenticate to a ...
7 years, 8 months ago (2013-04-16 20:57:20 UTC) #8
rmsousa
https://codereview.chromium.org/12905012/diff/29001/remoting/webapp/third_party_auth.js File remoting/webapp/third_party_auth.js (right): https://codereview.chromium.org/12905012/diff/29001/remoting/webapp/third_party_auth.js#newcode71 remoting/webapp/third_party_auth.js:71: On 2013/04/16 20:57:20, Jamie wrote: > Missing return here? ...
7 years, 8 months ago (2013-04-17 03:48:46 UTC) #9
Jamie
lgtm https://codereview.chromium.org/12905012/diff/29001/remoting/webapp/third_party_auth.js File remoting/webapp/third_party_auth.js (right): https://codereview.chromium.org/12905012/diff/29001/remoting/webapp/third_party_auth.js#newcode168 remoting/webapp/third_party_auth.js:168: {'url': fullTokenUrl, 'interactive': true}, On 2013/04/17 03:48:46, rmsousa ...
7 years, 8 months ago (2013-04-17 19:16:51 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmsousa@chromium.org/12905012/48001
7 years, 8 months ago (2013-04-25 22:44:31 UTC) #11
commit-bot: I haz the power
7 years, 8 months ago (2013-04-26 02:35:54 UTC) #12
Message was sent while issue was closed.
Change committed as 196580

Powered by Google App Engine
This is Rietveld 408576698