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

Unified Diff: remoting/webapp/me2mom/background.html

Issue 7016001: Simple OAuth1 implementation based on http://code.google.com/chrome/extensions/tut_oauth.html. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/webapp/me2mom/choice.html » ('j') | remoting/webapp/me2mom/chrome_ex_oauthsimple.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/me2mom/background.html
diff --git a/remoting/webapp/me2mom/background.html b/remoting/webapp/me2mom/background.html
index 216f22eed4dd518327383ca5fac0f1b0f450a601..ea99e852b6e2ea306503a718460efe3251f067a5 100644
--- a/remoting/webapp/me2mom/background.html
+++ b/remoting/webapp/me2mom/background.html
@@ -5,6 +5,8 @@ Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<html>
+ <script type="text/javascript" src="chrome_ex_oauthsimple.js"></script>
+ <script type="text/javascript" src="chrome_ex_oauth.js"></script>
<script type="text/javascript">
function setItem(key, value) {
window.localStorage.setItem(key, value);
@@ -15,5 +17,14 @@ found in the LICENSE file.
function clearAll() {
window.localStorage.clear();
}
+ var oauth = ChromeExOAuth.initBackgroundPage({
+ 'request_url': 'https://www.google.com/accounts/OAuthGetRequestToken',
+ 'authorize_url': 'https://www.google.com/accounts/OAuthAuthorizeToken',
+ 'access_url': 'https://www.google.com/accounts/OAuthGetAccessToken',
+ 'consumer_key': 'anonymous',
+ 'consumer_secret': 'anonymous',
+ 'scope': 'https://www.googleapis.com/auth/chromoting',
+ 'app_name': 'Remoting WebApp'
+ });
</script>
</html>
« no previous file with comments | « no previous file | remoting/webapp/me2mom/choice.html » ('j') | remoting/webapp/me2mom/chrome_ex_oauthsimple.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698