fixed guide for changed process of creating client ID and secret
authorIckhee Woo <ickhee.woo@samsung.com>
Tue, 5 Jan 2016 01:11:47 +0000 (10:11 +0900)
committerIckhee Woo <ickhee.woo@samsung.com>
Tue, 5 Jan 2016 01:11:47 +0000 (10:11 +0900)
Change-Id: I153b8490259e0d23388665c53aa20063c18932c6
Signed-off-by: Ickhee Woo <ickhee.woo@samsung.com>
org.tizen.sampledescriptions/html/mobile_n/oauth2_sd_mn.htm

index b20aea5..c0ed2bb 100644 (file)
 <p>The dummy client ID and dummy client secret in the <span style="font-family: Courier New,Courier,monospace">oauth2_provider_configs.h</span> file must be replaced with the respective App ID and App secret in the OAuth2 sample application.</p>
 <p>Obtain the needed client IDs and secrets from the respective resource owners. For example, the Google client ID and secret can be obtained from the <strong>Developers Console</strong> as follows:</p>
 <ol>
-<li>Go to <a href="https://console.developers.google.com" target="_blank">Developers Console</a>, sign in to your Google account, and click <strong>Create an empty project</strong>.</li>
-<li>In the <strong>New Project</strong> dialog box, enter a <strong>Project name</strong> and a <strong>project ID</strong> for the OAuth2 sample and click <strong>Create</strong>. An activity begins and is shown at the bottom of the view.</li>
-<li>When the activity is completed, in the left sidebar, select <strong>API &amp; auth &gt; APIs &gt; Google+ API</strong>, and click <strong>Enable API</strong>.</li>
-<li>In the left sidebar, select <strong>API &amp; auth &gt; Credentials</strong>, click <strong>OAuth consent screen</strong>, and set up <strong>Product name</strong>. Click <strong>Save</strong>.</li>
-<li>Click <strong>Add credentials</strong> and select <strong>OAuth 2.0 client ID</strong>.</li>
-<li>Select <strong>Other</strong>, enter the client name, such as <span style="font-family: Courier New,Courier,monospace">org.tizen.oauth2sample</span>, click <strong>Create</strong>.
-<p>The client ID and secret are displayed in a popup window.</p></li>
+<li>Go to <a href="https://console.developers.google.com/project" target="_blank">Developers Console</a>, sign in to your Google account, and click <strong>Create project</strong>.</li>
+<li>In the <strong>New Project</strong> dialog box, put a <strong>name of your project</strong> for the OAuth2 sample and click <strong>Create</strong>.</li>
+<li>Select the <strong>Enable and manage APIs</strong> on dashboard &gt; <strong>Credentials</strong> on left tab &gt; <strong>OAuth consent screen</strong> on upper tab.</li>
+<li>Put <strong>product name</strong> by using your project's and click <strong>Save</strong>.</li>
+<li>Click the <strong>New credentials</strong> from the drop down box and select <strong>OAuth client ID</strong>.</li>
+<li>Choice the <strong>Application type</strong> as <strong>Web application</strong>.</li>
+<li>Put the <strong>Name</strong> as a valid name for <strong>your client</strong>.</li>
+<li>In order to set a new <strong>Authorized redirect URIs</strong> in creation of Google ID and secret, you need to put it as <strong>OAUTH2_REDIRECT_URL</strong> in <strong>oauth_provider_configs.h</strong> .<br><pre class="prettyprint">/*All apps are registered with this redirection url*/<br>#define OAUTH2_REDIRECT_URL "dummy_redirect_url" /*Developer has to provide the redirect url*/</pre>You have to replace <strong>"dummy_redirect_url"</strong> with any valid URI and can set <strong>Authorized redirect URIs</strong> by using that.<br>Then, you can finish the process of generation for creating client ID and secret.</li>
 </ol>
 </li>
 </ul>