View a markdown version of this page

Setting up Amazon Business SSO - AWS Marketplace

Setting up Amazon Business SSO

Complete this page only if you want the Buy button to sign buyers in to Amazon Business with single sign-on (SSO).

If buyers sign in to Amazon Business themselves, skip to Getting Amazon Business API credentials.

Create a SAML application in your identity provider (IdP) that signs buyers in to Amazon Business. Then exchange metadata with Amazon Business to complete the SSO trust. Your IdP administrator and Amazon Business administrator complete these procedures together. Use the same IdP that you use for storefront sign-in.

Identity providers for SSO

You can use any IdP that supports SAML 2.0 applications. This page uses Okta as the example. In another IdP, menu and setting names differ, so use the equivalent settings.

Creating the Amazon Business application in your IdP

To create and configure the Amazon Business SAML application
  1. In the Okta Admin Console, open Applications, choose Create App Integration, select SAML 2.0, and then choose Next.

  2. Enter Amazon Business as the App name, and then choose Next to continue to Configure SAML.

  3. Configure the following values. To display the signing and encryption settings, choose Show Advanced Settings.

    Setting Value

    Single sign-on URL

    Amazon's HTTP-POST AssertionConsumerService Location from its service provider (SP) metadata. Copy the whole URL, including the query string. Its path contains /bb/feature/sso/action/3p_redirect. Amazon Business also shows this value as SSO URL on its Amazon connection data page.

    Use this for Recipient URL and Destination URL

    Selected

    Audience URI (SP Entity ID)

    https://www.amazon.com. Confirm that it matches the entityID in Amazon's metadata.

    Default RelayState

    Leave empty.

    Name ID format

    Unspecified

    Application username

    Email

    Update application username on

    Create and update

    Response / Assertion Signature

    Signed / Signed

    Signature Algorithm / Digest Algorithm

    RSA-SHA256 / SHA256

    Assertion Encryption

    Encrypted, using Amazon's SP encryption certificate (Encryption Certificate). Leave Encryption Algorithm and Key Transport Algorithm at the values that Okta shows.

    If Amazon's metadata isn't available yet, temporarily use https://example.invalid/pending-amazon-acs as the Single sign-on URL and keep the Amazon audience. Leave encryption at its initial setting until you get Amazon's certificate. Save the app so that you can download the IdP metadata. Then replace the temporary URL with Amazon's assertion consumer service (ACS) URL, and turn on encryption before you test.

  4. Choose Next, continue past the optional Feedback page, and choose Finish.

To add the attribute statements
  • On the Sign On tab, open Show legacy configuration. Next to Profile attribute statements, choose Edit. Add the following rows, and then choose Save.

    Name Name format Value

    email

    Unspecified

    user.email

    firstName

    Unspecified

    user.firstName

    lastName

    Unspecified

    user.lastName

To assign users and download the identity provider metadata
  1. On the Assignments tab, assign the same test user and buyer groups that you assigned to the storefront application. Keep each application username equal to the user's email address.

  2. On the Sign On tab, in the Settings section, download the Identity Provider metadata as XML. Give this file to your Amazon Business administrator.

Configuring SSO in Amazon Business

To configure Amazon Business SSO
  1. In the intended business account, open Business Settings > System integrations > Single Sign-On.

  2. Choose Set up SSO, and configure the following:

    Setting Value

    Identity provider

    Your IdP. In this example, choose Okta.

    Default Group

    Your intended group for newly provisioned SSO buyers. Search for it under Select a default group.

    Default Buying Role

    Buyer (some setup versions call this Requisitioner). Don't choose Punchout user; it's a different purchasing flow.

  3. Choose Next. Under Upload your metadata file, choose Upload XML File, choose Browse, select the IdP metadata file for the Amazon Business application, and then choose Upload.

  4. Review Connection data. The EntityID, IssuerUrl, HTTP-Redirect and HTTP-Post endpoints, and Signing Certificate Public Key must all come from the Amazon Business application in your IdP. Don't use values from the AWS Marketplace Storefront application. Choose Next.

  5. Set Attribute mapping as follows, and then choose Next. Check that each SAML AttributeName matches the attribute name in your IdP exactly, including capitalization.

    Amazon data SAML AttributeName

    Email

    email. Also select Email as Unique Id. The page might combine these as Email & Unique ID.

    First Name

    firstName

    Last Name

    lastName

  6. On Amazon connection data, download the SP metadata (Metadata XML file) and the Amazon SSO Certificate. Leave the confirmation check box cleared until you save these values in your IdP.

To update the IdP application and confirm the setup
  1. In Okta, open the Amazon Business application. On the General tab, next to SAML Settings, choose Edit, and then choose Next. Replace any temporary Single sign-on URL with Amazon's exact HTTP-POST ACS (the SSO URL on the Amazon connection data page). Confirm the audience, the Unspecified Name ID format, and the signed response and assertion settings.

  2. Set Assertion Encryption to Encrypted, and upload Amazon's SP encryption certificate as the Encryption Certificate. This certificate is different from the IdP signing certificate that Amazon received. Choose Next, and then choose Finish.

  3. Recheck the three saved attribute statements. To confirm the buyer's email NameID and the populated email, firstName, and lastName attributes, choose Preview the SAML Assertion.

  4. Return to Amazon Business. Select I confirm that Amazon's metadata has been configured on my IDP, and then choose Continue. Review SSO Connection Details and the Testing status.

Testing with a clean browser

To test Amazon Business SSO
  1. Open a new private browser window with no existing Amazon session. Sign in to your IdP as your assigned test buyer and complete multi-factor authentication (MFA).

  2. In that window, start sign-in from the Amazon Business application in your IdP. In Okta, open the application's General > App Embed Link.

  3. Verify that you reach the intended Amazon Business account as that buyer, with the expected group and role. If Amazon requests an account link, merge, or conversion, have the account owner review the choice before you continue.

  4. Return to the Amazon Business SSO page. A successful test shows Testing verified and makes Activate available.

Activating SSO

Activate only when you're ready

Activation is account-wide and is your final SSO go-live step. To turn SSO off after activation, you must contact Amazon Business support. Don't use activation as a troubleshooting step.

You can finish the connector and storefront setup while Amazon Business SSO remains in Testing.

To activate Amazon Business SSO
  1. Confirm that your buyer assignments, storefront sign-in, and support arrangements are ready.

  2. On the Amazon Business SSO page, choose Activate, and then complete Amazon's confirmation.

  3. Revisit the SSO page and copy its current sign-in link. You need this link when you configure the connector.

After activation, Amazon Business reports SSO as active. A Testing status alone doesn't establish that the test or activation succeeded.