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

Unified Diff: chrome/common/extensions/docs/static/tut_oauth.html

Issue 9968064: Documenting permissions for OAuth tutorial (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 8 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 | chrome/common/extensions/docs/tut_oauth.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/static/tut_oauth.html
===================================================================
--- chrome/common/extensions/docs/static/tut_oauth.html (revision 132824)
+++ chrome/common/extensions/docs/static/tut_oauth.html (working copy)
@@ -86,6 +86,24 @@
});
</pre>
+<p>
+To use the OAuth library,
+you must declare the "tabs" permision in the
+<a href="http://code.google.com/chrome/extensions/manifest.html">extension manifest</a>.
+You must also declare the sites you are using
+including the request URL, the authorize URL, access URL,
+and, if necessary, the scope URL.
+For example:
+</p>
+
+<pre>
+"permissions": [ "tabs", "https://docs.google.com/feeds/*",
+ "https://www.google.com/accounts/OAuthGetRequestToken",
+ "https://www.google.com/accounts/OAuthAuthorizeToken",
+ "https://www.google.com/accounts/OAuthGetAccessToken"
+]
+</pre>
+
<h3 id="request-token">Fetching and authorizing a request token</h3>
<p>
« no previous file with comments | « no previous file | chrome/common/extensions/docs/tut_oauth.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698