Amazon external IDP
Login with Amazon (LWA) lets you protect your customer information by leveraging the user authentication system used by Amazon.com. Login with Amazon is based on OAuth 2.0.
The Amazon social connection lets users log in to your application using their Amazon profile.
Register for Login with Amazon
Before you can use LWA on a website, you must register a security profile through the Developer Console. During registration, you’ll be asked to provide the name of your application, your logo, and a link to your privacy policy. Users will see this information each time they use Login with Amazon on your website or mobile app.
Amazon describes the LWA registration process.
Prerequisites
This process requires:
Create a security profile at Amazon
Skip this section if you have already created a security profile in the Amazon Developer Console.
-
Visit the Amazon Developer Console.
You are asked to log in to the Developer Console, which handles application registration for Login with Amazon. If this is your first time using the Developer Console, you are asked to set up an account.
-
Click Create a New Security Profile, which takes you to the Security Profile Management page.
-
Enter a Name and a Description for your security profile.
A security profile associates user data and security credentials with one or more related apps. The Name is the name displayed on the consent screen when users agree to share information with your application. This name applies to Android, iOS, and website versions of your application.
-
Enter a Consent Privacy Notice URL for your application.
The Privacy Notice URL is the location of your company or application's privacy policy (for example,
http://www.example.com/privacy.html
). This link is displayed to users on the consent screen. It applies to Android, iOS, and website versions of your application. -
To add a Consent Logo Image for your application, click Upload Image.
This logo is displayed on the sign-in and consent screens to represent your business or website. It applies to Android, iOS, and website versions of your application. The logo is shrunk to 50 pixels in height if it is taller than 50 pixels. There is no limitation on the width of the logo.
-
-
Click Save.
Add your website to your security profile at Amazon
-
Go to the Web Settings of the security profile that you want to use for your app.
-
Locate the security profile that you want to modify from the table.
-
Hover over the :gear: button button shown in the Manage column.
-
Select the Web Settings menu item.
-
-
Click Edit.
-
To use Login with Amazon with a website, you must specify the 88 and Allowed Return URLs.
-
Add your Allowed Origins:
https://<tenant-domain>
-
Add your Allowed Return URLs, which looks like:
https://<tenant-domain>/broker/authentication/callback
.
-
-
Click Save.
Copy the credentials
-
You can find the credentials on the Security Profile Management page, on the Web Settings tab.
-
Copy the Client ID.
-
Click Show secret and copy the Client secret.
Configure LWA in the Identity Broker
- Click Add identity provider and select OAuth.
Typically, you fill out the following identity provider details:
- Display name: Amazon (just an example)
- Active: Select the check box
- Client ID: The Client ID that you copied
- Authentication method: Client secret post
- PKCE: Do not select the check box
- Client secret: The Client secret that you copied
- Authorization endpoint:
https://www.amazon.com/ap/oa
- Token endpoint:
https://api.amazon.com/auth/o2/token
- Issuer:
https://www.amazon.com
- User attributes endpoint and
https://api.amazon.com/user/profile
- JWKs URI: Empty
- Signature type:
Asymmetric
- Identity provider signing certificate: Empty
- Encrypted JWT: Do not select the check box
- Single logout: Do not select the check box
- Mutual TLS keystore key pair: Empty
- Mutual TLS truststore certificate: Empty
Variant
You always need at least one variant. For LWA, you only need to configure a variant name, such as Authentication.
For scopes, Thales recommends profile
, profile:user_id
, or postal_code
. For more information, see customer profile.