Amazon Social Login Configuration Guide


Amazon is both the largest Internet retailer in the world and the world’s No. 1 provider of cloud computing services.

Before You Begin

To use Amazon for social login you must:

  1. Obtain an Amazon developer account from https://developer.amazon.com.
  2. Do one of the following:
    • Open a previously-created Amazon application and copy the client ID and client secret.
  3. Use the Social Login Engage Dashboard and the Amazon client ID and client secret to configure Amazon as a social login provider.

In This Configuration Guide


Creating an Amazon Application

Back to top


This section walks you through the process of creating an Amazon application for social login. If you already have an application, see the Using an Existing Amazon Application for Social Login section of this documentation.

To create an Amazon application, complete the following procedure:

  1. Log on to the Amazon developers center (https://developer.amazon.com).
  2. On the developer home page, in the upper right corner, click Developer Console:

  1. On the Developer Console home page, click Login with Amazon:

  2. On the Login with Amazon home page, click Create a New Security Profile:

  3. On the Name your new Security Profile page:

  • Enter the name of your app in the Security Profile Name field.
  • Enter a brief description of your app in the Security Profile Description field.
  • Enter the URL for your privacy policy in the Consent Privacy Notice URL field.

For example:

  1. Click Save.

  2. On the home page for your new app. click the configuration icon in the Manage column and then click Web Settings:

  3. In the Web Settings section, copy the Client ID:

  4. Click Show Secret and then copy the client secret:


    Both the client ID and the client secret are required to configure Amazon as a social login provider.

  5. Click the Edit button, enter your Amazon redirect URI in the Allowed Returns URLs field, and then click Save. If you are using a standard Identity Cloud domain your redirect URL will look similar to this: https://greg-stemp.rpxnow.com/amazon/callback. For example:

  1. Log off from the Amazon developers center.



Using an Existing Amazon Application

Back to top


If you already have a social login application, complete the following steps to retrieve the application’s client ID and client secret:

  1. Log on to the Amazon developers center (https://developer.amazon.com).
  2. On the developer home page, in the upper right corner, click Developer Console:

  3. On the Developer Console page, in the navigation pane, click Login with Amazon:

  4. On the Login with Amazon page, click Show Client ID and Client Secret next to the app you want to use for social login:

  5. Copy both the client ID and the client secret (these values are both required in order to configure Amazon as a social login provider):

  1. Log off from the Amazon developers center.



Configuring Amazon as a Social Login Provider

Back to top


To configure Amazon as a social login provider, make sure you have your Amazon client ID and client secret, and then complete the following procedure:

  1. Log on to your Social Login Dashboard (https://dashboard.janrain.com).
  2. From the Dashboard home page, click the Manage Engage Dashboard icon.
  3. From the Engage Dashboard, in the Widgets and SDKs section, click Sign-Ins.
  4. From the Sign-in page, verify that Widget is selected and then expand Providers.
  5. From the list of Providers, click Amazon.
  6. In the Amazon dialog box, click Next until you reach the screen requesting the client ID and client secret:
  7. Paste your Amazon client ID in the Client ID field, paste your Amazon client secret in the Client Secret field, and then click Save. Amazon appears in your social login widget.
  8. When you are finished, select Save and Publish and then click Publish. It might take as long as one hour before Amazon appears as a social login option for your web site.


Testing Amazon Social Login

Back to top


To test Amazon social login, complete the following procedure:

  1. Do one of the following:
    • If you have just published your widget settings, click the Test your widget link that appears after the widget has been saved.
    • If you previously published your widget settings then, from the Engage Dashboard Sign-in page, click Launch a test widget.
       
  2. From the Test page, click the Amazon icon:
  3. In the Amazon.com Sign In window, logon using a valid Amazon account:
  4. If login succeeds, information returned from the Amazon profile is displayed in the API response preview field:

The returned profile information will vary depending on:

  • The Amazon account used in the test.
  • The profile information you requested for Amazon.

You can verify Amazon profile fields by completing the following procedure:

  1. From the Engage Dashboard home page, click the Manage Providers icon:
  2. From the Configure Providers page, click Amazon.
  3. Profile information returned from Amazon is displayed onscreen. For example:

Fields not marked with an Off or an Ask label are automatically returned when a user logs on using an Amazon account.

For fields that are marked with a label, click Off to request that the information be returned. The Off label will change to Ask, meaning that, at logon time, the user will be asked whether he or she gives permission for that data to be returned:

For example, if you ask for a user’s address during logon, he or she will see the following message before they log on:

The user can either click Okay to forward all the requested information, or can click Cancel to terminate logon.

On the Configure Providers page, click Ask to turn off the information request.


Assigning a Different Amazon Application for Social Login

Back to top


If you want to use a different Amazon application or if you need to change your existing application, you must update the Amazon provider configuration settings. To do that, complete the following procedure:

  1. From the Engage Dashboard home page, click the Manage Providers icon:
  2. On the Configure Providers page, click Amazon.
  3. Click the green Configured button to display the Amazon is currently enabled dialog box:
  4. To change the Amazon configuration, click Modify these settings.
  5. In the Amazon dialog box, change the Client ID and/or Client Secret as needed, and then click Save:

Although you can modify your Amazon settings, you cannot delete these settings. If you delete the settings and try to save your changes, you’ll see the error message Please enter your Consumer Key and Secret exactly as Amazon shows them.

This means that you cannot “unconfigure” the provider: once configured, the Amazon icon will always be shown as green (i.e., configured) in the Social Login Dashboard.


Removing Amazon as a Social Login Provider

Back to top


If you no longer want to use Amazon for social login, you can remove Amazon as a social login provider by completing the following procedure:

  1. Log on to your Social Login Dashboard (https://dashboard.janrain.com).
  2. From the Dashboard home page, click the Manage Engage Dashboard icon.
  3. From the Engage Dashboard home page, in the Widgets and SDKs section, click Sign-Ins.
  4. From the Sign-in page, verify that Widget is selected and then expand Providers.
  5. In the widget, click the X in the upper right corner of the Amazon icon.
  6. Scroll to the bottom of the page, select Save and Publish, and then click Publish. Amazon no longer appears in the sign-on widget.
Note. You must always have at least one social login provider in the widget. If you delete all the providers and then click Publish, you’ll see the error message Couldn’t save configuration: No providers.