From: Ickhee Woo Date: Tue, 5 Jan 2016 01:11:47 +0000 (+0900) Subject: fixed guide for changed process of creating client ID and secret X-Git-Tag: tizen_3.0/TD_SYNC/20161201~243^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=626188a7bff7e42c1eedc833bf11dbfb5487c2ff;p=sdk%2Fonline-doc.git fixed guide for changed process of creating client ID and secret Change-Id: I153b8490259e0d23388665c53aa20063c18932c6 Signed-off-by: Ickhee Woo --- 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 b20aea5..c0ed2bb 100644 --- a/org.tizen.sampledescriptions/html/mobile_n/oauth2_sd_mn.htm +++ b/org.tizen.sampledescriptions/html/mobile_n/oauth2_sd_mn.htm @@ -44,13 +44,14 @@

The dummy client ID and dummy client secret in the oauth2_provider_configs.h file must be replaced with the respective App ID and App secret in the OAuth2 sample application.

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 Developers Console as follows:

    -
  1. Go to Developers Console, sign in to your Google account, and click Create an empty project.
  2. -
  3. In the New Project dialog box, enter a Project name and a project ID for the OAuth2 sample and click Create. An activity begins and is shown at the bottom of the view.
  4. -
  5. When the activity is completed, in the left sidebar, select API & auth > APIs > Google+ API, and click Enable API.
  6. -
  7. In the left sidebar, select API & auth > Credentials, click OAuth consent screen, and set up Product name. Click Save.
  8. -
  9. Click Add credentials and select OAuth 2.0 client ID.
  10. -
  11. Select Other, enter the client name, such as org.tizen.oauth2sample, click Create. -

    The client ID and secret are displayed in a popup window.

  12. +
  13. Go to Developers Console, sign in to your Google account, and click Create project.
  14. +
  15. In the New Project dialog box, put a name of your project for the OAuth2 sample and click Create.
  16. +
  17. Select the Enable and manage APIs on dashboard > Credentials on left tab > OAuth consent screen on upper tab.
  18. +
  19. Put product name by using your project's and click Save.
  20. +
  21. Click the New credentials from the drop down box and select OAuth client ID.
  22. +
  23. Choice the Application type as Web application.
  24. +
  25. Put the Name as a valid name for your client.
  26. +
  27. In order to set a new Authorized redirect URIs in creation of Google ID and secret, you need to put it as OAUTH2_REDIRECT_URL in oauth_provider_configs.h .
    /*All apps are registered with this redirection url*/
    #define OAUTH2_REDIRECT_URL "dummy_redirect_url" /*Developer has to provide the redirect url*/
    You have to replace "dummy_redirect_url" with any valid URI and can set Authorized redirect URIs by using that.
    Then, you can finish the process of generation for creating client ID and secret.