added description for creating client Id and secret for the liboauthsample.
authorIckhee Woo <ickhee.woo@samsung.com>
Mon, 19 Oct 2015 10:52:27 +0000 (19:52 +0900)
committerIckhee Woo <ickhee.woo@samsung.com>
Mon, 19 Oct 2015 10:52:27 +0000 (19:52 +0900)
Change-Id: Icadfa5b27c8eccad00d21e018a491d542509d140
Signed-off-by: Ickhee Woo <ickhee.woo@samsung.com>
org.tizen.sampledescriptions/html/mobile_n/oauth2_sd_mn.htm
org.tizen.sampledescriptions/html/mobile_n/oauth_sd_mn.htm

index 3b4ebd5..0390f17 100644 (file)
@@ -53,8 +53,8 @@ figure figcaption {
 </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><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 oauth2sample application. Refer to the respective service owner to get the keys.</b></p>
+<p>For example, 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>
index 4ce8fc8..6736784 100644 (file)
@@ -43,17 +43,26 @@ figure figcaption {
 <p align="center"> <img alt="OAuth main view" src="../images/oauth_main.png"/> </p>
 
 <h2>Prerequisites</h2>
-<p><b>The dummy consumer key and dummy consumer secret in the oauth_provider_configs.h should be replaced with respective App Id and App secret in the LibOAuthSampleApp. 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 OAuth library service.</p>
-
-<p>The system time in the deice should be adjusted to the respective time zone and the time should be accurate.</p>
-<p>Internet connection should be enabled in the device.</p>
-
-<p>To ensure proper application execution, the following privileges must be set:</p>
+<ol>
+<p><li>To ensure proper application execution, the following privileges must be set:</p>
  <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>
+<p>Internet connection should be enabled in the device.</p>
+</li>
+
+<li><p>The system time in the deice should be adjusted to the respective time zone and the time should be accurate.</p></li>
+
+<li><p><b>The dummy client Id and dummy client secret in the oauth_provider_configs.h should be replaced with respective App Id and App secret in the liboauthsample application. Refer to the respective service owner to get the keys.</b></p>
+<p>For example, the Twitter client Id and secret can be gotten in <strong>Twitter Apps</strong> through below steps.</p>
+<p><ol>
+<li>Sign-in into your Twitter account, go to the <a href=https://apps.twitter.com target="_blank">Twitter Apps</a>, and click <strong>Create New App</strong> button.</li>
+<li>Provide application's <strong>Name</strong>, <strong>Description</strong>, and <strong>URL</strong> for the liboauthsample and click <strong>Create your Twitter application</strong> button.</li>
+<li>Then, you can get the client Id(Consumer key) and secret by selecting <strong>(manage keys and access tokens)</strong> beside <strong>Consumer key</strong> in <strong>Application Settings</strong>.</li>
+</ol>
+<p>All the client Id and secret which are used in liboauthsample should be obtained from the respective resource owner providers and replaced them with dummy Id and secret in <strong>oauth_provider_configs.h</strong>.</li>
+</ol>
 
 <h2 id="implementation" name="implementation">Implementation</h2>