From 5c2f74d49aa465255a85b9491ea1e57c3147cce4 Mon Sep 17 00:00:00 2001 From: Ickhee Woo Date: Mon, 19 Oct 2015 17:38:46 +0900 Subject: [PATCH] added description for creating client Id and secret. Change-Id: I230c9fc1803ca3982b6914717c990c1a7f9af934 Signed-off-by: Ickhee Woo --- .../html/mobile_n/oauth2_sd_mn.htm | 25 +++++++++++++++++----- 1 file changed, 20 insertions(+), 5 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 e573e31..3b4ebd5 100644 --- a/org.tizen.sampledescriptions/html/mobile_n/oauth2_sd_mn.htm +++ b/org.tizen.sampledescriptions/html/mobile_n/oauth2_sd_mn.htm @@ -43,14 +43,29 @@ figure figcaption {

OAuth2 main view

Prerequisites

-

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.

-

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

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

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

    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.

    +

      +
    1. Sign-in into your Google account, go to the Developers Console, and click Create an empty project.
    2. +
    3. 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.
    4. +
    5. At left sidebar, select APIs in API & auth and click enable API button in Google+ API.
    6. +
    7. Select Credentials in API & auth, then click OAuth consent screen for setting up Product name.
    8. +
    9. Click Add credentials button and select credential as OAuth 2.0 client ID.
    10. +
    11. Select others and fill the name of client (ex. org.tizen.oauth2sample).
    12. +
    13. Then, you can get the client Id and secret.
    14. +
    +

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

  4. +

Implementation

-- 2.7.4