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

Side by Side Diff: chrome/common/extensions/docs/templates/articles/tut_oauth.html

Issue 219213007: Remove .html extension from links (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
1 <h1>Tutorial: OAuth</h1> 1 <h1>Tutorial: OAuth</h1>
2 2
3 3
4 <p> 4 <p>
5 <a href="http://oauth.net/">OAuth</a> is an open protocol that aims to standardi ze the way desktop and web applications access a user's private data. OAuth prov ides a mechanism for users to grant access to private data without sharing their private credentials (username/password). Many sites have started enabling APIs to use OAuth because of its security and standard set of libraries. 5 <a href="http://oauth.net/">OAuth</a> is an open protocol that aims to standardi ze the way desktop and web applications access a user's private data. OAuth prov ides a mechanism for users to grant access to private data without sharing their private credentials (username/password). Many sites have started enabling APIs to use OAuth because of its security and standard set of libraries.
6 </p> 6 </p>
7 <p> 7 <p>
8 This tutorial will walk you through the necessary steps for creating a Google Ch rome Extension that uses OAuth to access an API. It leverages a library that you can reuse in your extensions. 8 This tutorial will walk you through the necessary steps for creating a Google Ch rome Extension that uses OAuth to access an API. It leverages a library that you can reuse in your extensions.
9 </p> 9 </p>
10 <p> 10 <p>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 'consumer_key': 'anonymous', 85 'consumer_key': 'anonymous',
86 'consumer_secret': 'anonymous', 86 'consumer_secret': 'anonymous',
87 'scope': 'https://docs.google.com/feeds/', 87 'scope': 'https://docs.google.com/feeds/',
88 'app_name': 'My Google Docs Extension' 88 'app_name': 'My Google Docs Extension'
89 }); 89 });
90 </pre> 90 </pre>
91 91
92 <p> 92 <p>
93 To use the OAuth library, 93 To use the OAuth library,
94 you must declare the "tabs" permision in the 94 you must declare the "tabs" permision in the
95 <a href="manifest.html">extension manifest</a>. 95 <a href="manifest">extension manifest</a>.
96 You must also declare the sites you are using 96 You must also declare the sites you are using
97 including the request URL, the authorize URL, access URL, 97 including the request URL, the authorize URL, access URL,
98 and, if necessary, the scope URL. 98 and, if necessary, the scope URL.
99 For example: 99 For example:
100 </p> 100 </p>
101 101
102 <pre data-filename="manifest.json"> 102 <pre data-filename="manifest.json">
103 "permissions": [ "tabs", "https://docs.google.com/feeds/*", 103 "permissions": [ "tabs", "https://docs.google.com/feeds/*",
104 "https://www.google.com/accounts/OAuthGetRequestToken", 104 "https://www.google.com/accounts/OAuthGetRequestToken",
105 "https://www.google.com/accounts/OAuthAuthorizeToken", 105 "https://www.google.com/accounts/OAuthAuthorizeToken",
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 <h2 id="sample-code">Sample code</h2> 209 <h2 id="sample-code">Sample code</h2>
210 210
211 <p> 211 <p>
212 Sample extensions that use these techniques are available in the Chromium source tree: 212 Sample extensions that use these techniques are available in the Chromium source tree:
213 </p> 213 </p>
214 214
215 <ul> 215 <ul>
216 <li><a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/exten sions/docs/examples/extensions/gdocs/">.../examples/extensions/gdocs/</a></li> 216 <li><a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/exten sions/docs/examples/extensions/gdocs/">.../examples/extensions/gdocs/</a></li>
217 <li><a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/exten sions/docs/examples/extensions/oauth_contacts/">.../examples/extensions/oauth_co ntacts/</a></li> 217 <li><a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/exten sions/docs/examples/extensions/oauth_contacts/">.../examples/extensions/oauth_co ntacts/</a></li>
218 </ul> 218 </ul>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698