From 3e782748031ee28911f8edc2c6e6c035caf4815f Mon Sep 17 00:00:00 2001 From: Ickhee Woo Date: Mon, 19 Oct 2015 19:52:27 +0900 Subject: [PATCH] added description for creating client Id and secret for the liboauthsample. Change-Id: Icadfa5b27c8eccad00d21e018a491d542509d140 Signed-off-by: Ickhee Woo --- .../html/mobile_n/oauth2_sd_mn.htm | 4 ++-- .../html/mobile_n/oauth_sd_mn.htm | 23 +++++++++++++++------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/org.tizen.sampledescriptions/html/mobile_n/oauth2_sd_mn.htm b/org.tizen.sampledescriptions/html/mobile_n/oauth2_sd_mn.htm index 3b4ebd5..0390f17 100644 --- a/org.tizen.sampledescriptions/html/mobile_n/oauth2_sd_mn.htm +++ b/org.tizen.sampledescriptions/html/mobile_n/oauth2_sd_mn.htm @@ -53,8 +53,8 @@ figure figcaption {
  • -

    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.

    -

    The google client Id and secret can be gotten in Developers console through below steps.

    +

    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.

    +

    For example, the Google client Id and secret can be gotten in Developers console through below steps.

    1. Sign-in into your Google account, go to the Developers Console, and click Create an empty project.
    2. In a dialog box that appears, provide a Project name and a Project Id for the oauth2sample and click Create button. Then, an activity will begin and be shown in the bottom of the view.
    3. diff --git a/org.tizen.sampledescriptions/html/mobile_n/oauth_sd_mn.htm b/org.tizen.sampledescriptions/html/mobile_n/oauth_sd_mn.htm index 4ce8fc8..6736784 100644 --- a/org.tizen.sampledescriptions/html/mobile_n/oauth_sd_mn.htm +++ b/org.tizen.sampledescriptions/html/mobile_n/oauth_sd_mn.htm @@ -43,17 +43,26 @@ figure figcaption {

      OAuth main view

      Prerequisites

      -

      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.

      -

      The App Id and App secret should be obtained from the respective resource owner provider and is out of scope of OAuth library service.

      - -

      The system time in the deice should be adjusted to the respective time zone and the time should be accurate.

      -

      Internet connection should be enabled in the device.

      - -

      To ensure proper application execution, the following privileges must be set:

      +
        +

      1. To ensure proper application execution, the following privileges must be set:

        • http://tizen.org/privilege/network.get
        • http://tizen.org/privilege/internet
        +

        Internet connection should be enabled in the device.

        +
      2. + +
      3. The system time in the deice should be adjusted to the respective time zone and the time should be accurate.

      4. + +
      5. 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.

        +

        For example, the Twitter client Id and secret can be gotten in Twitter Apps through below steps.

        +

          +
        1. Sign-in into your Twitter account, go to the Twitter Apps, and click Create New App button.
        2. +
        3. Provide application's Name, Description, and URL for the liboauthsample and click Create your Twitter application button.
        4. +
        5. Then, you can get the client Id(Consumer key) and secret by selecting (manage keys and access tokens) beside Consumer key in Application Settings.
        6. +
        +

        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 oauth_provider_configs.h.

      6. +

      Implementation

      -- 2.7.4