diff options
author | rmsousa@chromium.org <rmsousa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-26 02:35:53 +0000 |
---|---|---|
committer | rmsousa@chromium.org <rmsousa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-26 02:35:53 +0000 |
commit | 6e7bc186f6b0194d2cad9631be0f3093245d47ab (patch) | |
tree | aee7a808883b3532d03a3dd99c91ab8d92847860 /remoting/remoting.gyp | |
parent | 3d828ba01876bf20e19161a7f1fbc384f353ba1d (diff) | |
download | chromium_src-6e7bc186f6b0194d2cad9631be0f3093245d47ab.zip chromium_src-6e7bc186f6b0194d2cad9631be0f3093245d47ab.tar.gz chromium_src-6e7bc186f6b0194d2cad9631be0f3093245d47ab.tar.bz2 |
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
Review URL: https://chromiumcodereview.appspot.com/12905012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196580 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/remoting.gyp')
-rw-r--r-- | remoting/remoting.gyp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/remoting/remoting.gyp b/remoting/remoting.gyp index a09377d..b21c52d 100644 --- a/remoting/remoting.gyp +++ b/remoting/remoting.gyp @@ -182,6 +182,7 @@ 'webapp/connection_history.js', 'webapp/connection_stats.js', 'webapp/cs_oauth2_trampoline.js', + 'webapp/cs_third_party_auth_trampoline.js', 'webapp/error.js', 'webapp/event_handlers.js', 'webapp/format_iq.js', @@ -208,6 +209,8 @@ 'webapp/stats_accumulator.js', 'webapp/storage.js', 'webapp/survey.js', + 'webapp/third_party_host_permissions.js', + 'webapp/third_party_token_fetcher.js', 'webapp/toolbar.js', 'webapp/ui_mode.js', 'webapp/wcs.js', |