> ## Documentation Index
> Fetch the complete documentation index at: https://help.allthenticate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up SAML single sign-on for Amazon Business

> Connect Amazon Business to Allthenticate over SAML: register Amazon as a service provider, enter Allthenticate's values in Amazon's SSO setup, test, and activate.

Amazon Business has a self-service SAML setup under **Business Settings**. You register Amazon as a service provider in Allthenticate, give Amazon Allthenticate's sign-in URL and certificate, run Amazon's test, then activate. After activation, Amazon creates a buyer account for anyone in your organization who signs in through Allthenticate.

## Before you start

* Admin access to the Allthenticate admin portal.
* An Amazon Business administrator account.
* **Your Amazon Business sign-in email must be the same as your Allthenticate email.** Amazon's test signs you in through Allthenticate as that email. If your Amazon login uses another address, the test creates a second Amazon account under your Allthenticate email and signs you in as it, and that account can't open the SSO settings to activate. Change your Amazon login email under **Your Account** > **Login & security** before you start, or make the matching account an administrator.
* Users who will sign in have the Allthenticator app set up.

## Configure in Allthenticate

**1. Add the service provider**

In the admin portal, go to **SSO** > **SAML** and select **Add Service Provider**. Enter `Amazon Business` as the **Provider Name**, uncheck **Use Metadata File**, and enter Amazon's values:

| Field | Value |
| - | - |
| **Entity ID** | `https://www.amazon.com` |
| **ACS URL** | `https://www.amazon.com/bb/feature/sso/action/3p_redirect` |

The [SAML setup guide](https://help.allthenticate.com/help/sso/saml.md#register-the-service-provider-in-allthenticate) shows the dialog with **Use Metadata File** unchecked.

**2. Add the attributes**

Amazon needs an email address and at least one name attribute. Under **Custom Attribute Statements**, select **Add Attribute** for each:

| Name | Value |
| - | - |
| `email` | `user.email` |
| `firstName` | `user.firstName` |
| `lastName` | `user.lastName` |

**3. Save and copy the identity provider values**

Select **Save**, then open the service provider from the list. Under **Metadata**, copy the **SSO Endpoint** and the **Entity ID**, and select **Download Public Key** to save the signing certificate.

## Configure in Amazon Business

**1. Start the SSO setup**

In Amazon Business, open **Business Settings**, select **Single Sign-On (SSO)**, then **Set up SSO**.

**2. Choose the identity provider**

Under **Search for your IDP**, select **Other**. Enter `Allthenticate` as the identity provider name. Set **Encrypted SAML Assertions** to **Off**: Allthenticate signs assertions but doesn't encrypt them. Select **Submit**, then **Next**.

**3. Set the defaults for new users**

Select the **default group** that new users join and their **Default Buying Role**, for example **Buyer**. These apply only to accounts Amazon creates through SSO; existing users keep their settings.

**4. Enter the connection data**

Skip the metadata upload with **Add Manually**, then enter:

| Amazon field | Value |
| - | - |
| **EntityID** | Allthenticate's **Entity ID** |
| **IssuerUrl** | Allthenticate's **Entity ID** |
| **HTTP-Redirect** | Allthenticate's **SSO Endpoint** |
| **HTTP-Post** | Allthenticate's **SSO Endpoint** |
| **Signing Certificate Public Key** | The contents of the certificate file, including the `BEGIN CERTIFICATE` and `END CERTIFICATE` lines |

**5. Map the attributes**

Map each Amazon field to the attribute name you added in Allthenticate:

| Amazon data | SAML AttributeName |
| - | - |
| **Email** | `email` |
| **First Name** | `firstName` |
| **Last Name** | `lastName` |

Amazon uses the email address as the unique ID when you don't map one.

**6. Confirm Amazon's connection data**

Amazon shows its own metadata, SSO URL and certificate. Allthenticate already has Amazon's entity ID and ACS URL from the first section, so check **I confirm that Amazon's metadata has been configured on my IDP** and select **Continue**.

## Test and activate

**1. Test the connection**

On the SSO page, select **Start testing**, then **Test**. Amazon opens a new tab and sends you to Allthenticate; approve the sign-in on your phone. Return to the first tab: a successful test shows **Success** and the status changes to **Testing verified**.

If the test fails, Amazon lists the attribute names it received and the ones it expected. Check them against the attribute names on the Allthenticate service provider.

**2. Activate**

Select **Activate**, check **I have fully tested SSO and am ready to go live**, and select **Switch to active**. The status changes to **Active**.

> [!WARNING]
>
> Once SSO is active, Amazon creates a buyer account in your default group for anyone who signs in through Allthenticate. Limit who can use the Amazon Business service provider in Allthenticate if not everyone should get an account.

## Test sign-in

Amazon gives you an **SP initiated URL** on the SSO page. Open it in a private browser window, approve the sign-in on your phone, and you land in Amazon Business, signed in.

## Troubleshooting

> [accordion] Customer identifier missing from SAML response token: email
>
> Amazon didn't find the attribute you mapped to **Email**. The test result lists the attribute names Allthenticate sent: map **Email** to the one that carries the email address, or rename the attribute on the Allthenticate service provider to match.

> [accordion] After the test, the SSO settings say you don't have permission
>
> The test signed you in as the Amazon account that matches your Allthenticate email, and that account isn't an Amazon Business administrator. Sign in again with your administrator login, open **Business Settings** > **Users**, and give the matching account the **Administrator** role. Then test again and activate.

> [accordion] Amazon asks you to confirm you're human
>
> Amazon sometimes shows an **I am human** check during the test or on account pages. Complete it and continue.

For other problems, see [SAML troubleshooting](https://help.allthenticate.com/help/sso/saml.md#troubleshooting).

## Related

* [Set up Allthenticate as a SAML identity provider](https://help.allthenticate.com/help/sso/saml.md)
* [Single sign-on overview](https://help.allthenticate.com/help/sso/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.