added description for creating client Id and secret.
authorIckhee Woo <ickhee.woo@samsung.com>
Mon, 19 Oct 2015 08:38:46 +0000 (17:38 +0900)
committerIckhee Woo <ickhee.woo@samsung.com>
Mon, 19 Oct 2015 08:38:46 +0000 (17:38 +0900)
Change-Id: I230c9fc1803ca3982b6914717c990c1a7f9af934
Signed-off-by: Ickhee Woo <ickhee.woo@samsung.com>
org.tizen.sampledescriptions/html/mobile_n/oauth2_sd_mn.htm

index e573e31..3b4ebd5 100644 (file)
@@ -43,14 +43,29 @@ figure figcaption {
 <p align="center"> <img alt="OAuth2 main view" src="../images/oauth2_main.png"/> </p>
 
 <h2>Prerequisites</h2>
-<p><b>The dummy consumer key and dummy consumer secret in the oauth2_provider_configs.h should be replaced with respective App Id and App secret in the OAuth2SampleApp. Refer to the respective service owner to get the keys.</b></p>
-<p>The App Id and App secret should be obtained from the respective resource owner provider and is out of scope of OAuth2 library service.</p>
-
+<ol>
+<li>
 <p>To ensure proper application execution, the following privileges must be set:</p>
- <ul>
+<ul>
   <li><span style="font-family: Courier New,Courier,monospace">http://tizen.org/privilege/network.get</span></li>
   <li><span style="font-family: Courier New,Courier,monospace">http://tizen.org/privilege/internet</span></li>
- </ul>
+</ul>
+</li>
+
+<li>
+<p><b>The dummy client Id and dummy client secret in the oauth2_provider_configs.h should be replaced with respective App Id and App secret in the OAuth2SampleApp. Refer to the respective service owner to get the keys.</b></p>
+<p>The google client Id and secret can be gotten in <strong>Developers console</strong> through below steps.</p>
+<p><ol>
+<li>Sign-in into your Google account, go to the <a href=https://console.developers.google.com target="_blank">Developers Console</a>, and click <strong>Create an empty project</strong>.</li>
+<li>In a dialog box that appears, provide a <strong>Project name</strong> and a <strong>Project Id</strong> for the oauth2sample and click <strong>Create</strong> button. Then, an activity will begin and be shown in the bottom of the view.</li>
+<li>At left sidebar, select <strong>APIs</strong> in <strong>API &amp; auth</strong> and click <strong>enable API</strong> button in <strong>Google+ API</strong>.</li>
+<li>Select <strong>Credentials</strong> in <strong>API &amp; auth</strong>, then click <strong>OAuth consent screen</strong> for setting up <strong>Product name</strong>.</li>
+<li>Click <strong>Add credentials</strong> button and select credential as <strong>OAuth 2.0 client ID</strong>.</li>
+<li>Select <strong>others</strong> and fill the name of client (ex. org.tizen.oauth2sample).</li>
+<li>Then, you can get the client Id and secret.</li>
+</ol>
+<p>All the client Id and secret which are used in oauth2sample should be obtained from the respective resource owner providers and replaced them with dummy Id and secret in <strong>oauth2_provider_configs.h</strong>.</li>
+</ol>
 
 <h2 id="implementation" name="implementation">Implementation</h2>