Amazon social identity provider
Social authentication is deprecated and will be removed in a future release of IDM. For more information, see Deprecation. |
Amazon as a social identity provider requires access over secure HTTP (HTTPS). |
Set up Amazon
To set up Amazon as a social identity provider, first Register for Login With Amazon. You will need an Amazon account.
Then, create a security profile. You will need the following information:
-
Security Profile Name (The name of your app)
-
Security Profile Description
-
Consent Privacy Notice URL
-
Consent Logo Image (optional)
When complete and saved, you should see a list of security profiles with OAuth2
credentials. You should be able to find the Client ID
and Client Secret
from this screen.
You still need to configure the web settings for your new Security Profile. From the Amazon Developer Console dashboard, select Apps and Services > Login with Amazon, then select Manage > Web Settings.
In the Web Settings
for your app, you’ll need to set either of the following properties:
-
Allowed Origins, which should match the URL for your registration page, such as
https://openidm.example.com:8443
-
Allowed Return URLs, which should match the redirect URIs described in Configure an Amazon Social Identity Provider. You may see URIs such as
https://openidm.example.com:8443/
.
Configure an Amazon social identity provider
To configure an Amazon social identity provider using the admin UI:
-
From the navigation bar, click Configure > Social ID Providers.
-
On the Social Identity Providers page, enable Amazon.
-
In the Amazon Provider window, enter applicable values in the fields, and click Save. For a complete list of fields, see Amazon Social Identity Provider Configuration Details.
After you save the social identity provider configuration, IDM generates a conf/identityProvider-amazon.json
file:
{
"provider" : "amazon",
"authorizationEndpoint" : "https://www.amazon.com/ap/oa",
"tokenEndpoint" : "https://api.amazon.com/auth/o2/token",
"userInfoEndpoint" : "https://api.amazon.com/user/profile"
"enabled" : true,
"clientId" : "<someUUID>",
"clientSecret" : {
"$crypto" : {
"type" : "x-simple-encryption",
"value" : {
"cipher" : "AES/CBC/PKCS5Padding",
"stableId" : "openidm-sym-default",
"salt" : "<hashValue>",
"data" : "<encryptedValue>",
"keySize" : 16,
"purpose" : "idm.config.encryption",
"iv" : "<encryptedValue>",
"mac" : "<hashValue>"
}
}
},
"scope" : [
"profile"
],
...
The file includes schema
information, which includes properties for each social identity account, as collected by IDM, as well as the order in which it appears in the admin UI. When you’ve registered a user with an Amazon social identity, you can verify this by selecting Manage > Amazon, and then selecting a user.
Another part of the file includes a propertyMap
, which maps user information entries between the source
(social identity provider) and the target
(IDM).
If you need more information about the properties in this file, see Amazon Social Identity Provider Configuration Details.
Configure user registration to link to Amazon
Once you’ve configured the Amazon social identity provider, you can activate it through User Registration. To do so in the admin UI, select Configure > User Registration, and activate that feature. Under the Social tab that appears, enable Social Registration. For more information on IDM user self-service features, see IDM user interface.
When you enable Social Registration, you’re allowing users to register on IDM through all active social identity providers.
Amazon social identity provider configuration details
You can set up the Amazon social identity provider through the admin UI or in a conf/identityProvider-amazon.json
file. IDM generates the identityProvider-amazon.json
file when you configure and enable this social identity provider in the admin UI. Alternatively, you can create the file manually.
The following table includes the information shown in the admin UI Amazon Provider pop-up window, along with associated information in the identityProvider-amazon.json
file:
Property (UI) | Property (JSON file) | Description |
---|---|---|
Client ID |
|
The client identifier for your Amazon App |
Client Secret |
|
Used with the Client ID to access the applicable Amazon API |
Scope |
|
An array of strings that allows access to user data; see Amazon’s Customer Profile Documentation. |
Authorization Endpoint |
|
Typically |
Token Endpoint |
|
Endpoint that receives a one-time authorization code, and returns an access token; typically |
User Info Endpoint |
|
Endpoint that transmits scope-related fields; typically |
Not in the admin UI |
|
Name of the social identity provider |
Not in the admin UI |
|
Authentication module |
Not in the admin UI |
|
Authentication identifier, as returned from the User Info Endpoint for each social identity provider |
Not in the admin UI |
|
Mapping between Amazon and IDM |
For information on social identity provider buttons and badges, see Social identity provider button and badge properties.