Commit a9d6be6b authored by mkearney@google.com's avatar mkearney@google.com

'Get Client ID' section in the identity API docs has been updated

to reflect the way it now works in developer console.

Developers no longer need to email Chrome apps to request their client ID.

Review URL: https://codereview.chromium.org/11761029

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175635 0039d316-1c4b-4281-b951-d872f2087c98
parent 3bfcde88
...@@ -86,26 +86,44 @@ It's not the most graceful task, but here's how it goes: ...@@ -86,26 +86,44 @@ It's not the most graceful task, but here's how it goes:
</p> </p>
<ol> <ol>
<li>Go to your <li>Go to your <a href="http://www.chromium.org/user-experience/user-data-directory">user data
<a href="http://www.chromium.org/user-experience/user-data-directory">user data directory</a>. directory</a>. Example on MacOs:
Example on MacOs: <code>~/Library/Application\ Support/Google/Chrome/Default/Extensions</code></li> <code>~/Library/Application\ Support/Google/Chrome/Default/Extensions</code></li>
<li>List the installed apps and extensions and match your app ID on the apps and extensions management page <li>List the installed apps and extensions and match your app ID on the apps and extensions
to the same ID here.</li> management page to the same ID here.</li>
<li>Go to the installed app directory (this will be a version within the app ID). <li>Go to the installed app directory (this will be a version within the app ID).
Open the installed <code>manifest.json</code> Open the installed <code>manifest.json</code> (pico is a quick way to open the file).</li>
(pico is a quick way to open the file).</li> <li>Copy the "key" in the installed <code>manifest.json</code> and paste it into your app's
<li>Copy the "key" in the installed <code>manifest.json</code> and paste it into your app's source manifest file.</li> source manifest file.</li>
</ol> </ol>
<h3 id="client_id">Get your client ID</h3> <h3 id="client_id">Get your client ID</h3>
<p> <p>
Setting up the client ID is currently not available externally You need to register your app
via <a href="https://devconsole-canary.corp.google.com/apis/">Google APIs Console</a>. in the Google APIs Console
So to setup the OAuth2 client ID, to get the client ID:
email <a href="mailto:chrome-apps-auth-requests@google.com">chrome-apps-auth-request@google.com</a> </p>
with your stable app ID and
we will reply appropriately with your OAuth2 client ID. <ol>
<li>Login to the <a href="https://code.google.com/apis/console/">Google APIs Console</a>
using the same Google account used to upload your app to the Chrome Web Store. </li>
<li>Create a new project by expanding the drop-down menu in the top-left
corner and selecting the <strong>Create...</strong> menu item. </li>
<li> Once created and named, go to the "Services" navigation menu item and
turn on any Google services your app needs. </li>
<li> Go to the "API Access" navigation menu item and click on the
<strong>Create an OAuth 2.0 client ID...</strong> blue button. </li>
<li> Enter the requested branding information,
select the <strong>Installed application</strong> type. </li>
<li> Select <strong>Chrome Application</strong> and enter your application ID
(same ID displayed in the apps and extensions management page). </li>
</ol>
<p class="warning">
<strong>Warning: </strong>
If the app ID here does not match your app ID,
an error will occur when your app calls <a href="#token">getAuthToken()</a>.
</p> </p>
<h3 id="update_manifest">Update your manifest</h3> <h3 id="update_manifest">Update your manifest</h3>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment