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.
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
-
In the Okta Admin Console, open Applications, choose Create App Integration, select SAML 2.0, and then choose Next.
-
Enter
Amazon Businessas the App name, and then choose Next to continue to Configure SAML. -
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
Locationfrom 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 theentityIDin 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-acsas 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. -
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 emailUnspecified
user.emailfirstNameUnspecified
user.firstNamelastNameUnspecified
user.lastName
To assign users and download the identity provider metadata
-
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.
-
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
-
In the intended business account, open Business Settings > System integrations > Single Sign-On.
-
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.
-
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.
-
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.
-
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
firstNameLast Name
lastName -
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
-
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.
-
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.
-
Recheck the three saved attribute statements. To confirm the buyer's email NameID and the populated
email,firstName, andlastNameattributes, choose Preview the SAML Assertion. -
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
-
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).
-
In that window, start sign-in from the Amazon Business application in your IdP. In Okta, open the application's General > App Embed Link.
-
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.
-
Return to the Amazon Business SSO page. A successful test shows Testing verified and makes Activate available.
Activating SSO
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
-
Confirm that your buyer assignments, storefront sign-in, and support arrangements are ready.
-
On the Amazon Business SSO page, choose Activate, and then complete Amazon's confirmation.
-
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.