This topic outlines the process of establishing a Single Sign-On (SSO) connection between SAP S/4HANA cloud and Azure active directory. In this setup, Azure functions as the Identity Provider (IdP), while the SAP Cloud server acts as the Service Provider (SP). The trust relationship between the systems is built using the SAML 2.0 protocol. Once configured, Automate Evolve leverages this setup to connect to SAP via SAML.
Prerequisites
- A working connection to SAP S/4HANA Public Cloud.
- Admin access to SAP Cloud Identity Services.
- An active Azure AD subscription with Single Sign-On (SSO) enabled for SAP Cloud Platform.
Section 1 : Steps to be carried out on SAP cloud identity services for configuring SAML
- Log in to the SAP Cloud Identity Authentication Service (IAS) using an account with administrator privileges
- Go to Identity Providers -> Corporate Identity Providers.
- Click Create for creation of a new Identity Provider that will be used for SAML authentication with Azure.
- On Create Identity Provider screen,
- Enter Display Name.
- Select Microsoft ADFS as the Identity Provider Type
- keep the Copy Settings from Identify Provider field (Don’t Copy from default IdP)
- click Create.
- Go to the Single Sign-On tab and select the option Forward all SSO Requests to Corporate IdP.
- Go to the Trust tab > Name ID Policy section, and set Email as the Name ID Format, then click Save.
- Navigate to Applications & Resources >
Applications,
- Open the relevant tenant (for which SAML configuration is in progress),
- In the Trust tab, select the option Trust All Corporate Identity Providers at the bottom of the page.
- Under Configure Requests to Corporate Identity Providers, go to the SAML
2.0 tab.
- Select the option Service Provider Authentication Context, and click Save.
- Next, go to the Conditional Authentication section.
- Scroll to the bottom and set the Default Authenticating Identity Provider for the cloud tenant.
- Choose the IdP created in step 4, select the checkbox Allow users stored in Identity Authentication Service to log on, and click Save.
- Before proceeding to Azure configuration, download the SAP Cloud metadata:
- Navigate to Applications & Resources > Tenant Settings > Single Sign-On.
- Under SAML 2.0 Configuration, click Download Metadata File.
- On the Download Metadata File screen, select Default Certificate (to be used for Azure configuration), and click Download.
Section 2: Basic Steps on Azure
- Create an SAP Cloud Platform type application on Azure.
- Select SAML based Single Sign-on and Upload metadata file received from
SAP and then click Add.
Under the Basic SAML Configuration section, the mandatory fields are automatically populated.
-
In the Attributes & Claims section, modify the attribute Unique User Identifier to user.mail.
-
Under the SAML Certificates section, locate the Token Signing Certificate.
The Federation Metadata XML and Certificate are generated here.
-
Download both the Federation Metadata XML and the Certificate. These will be required in the Service Provider SAP Cloud system.
Section 3: Further Steps to be performed on SAP Cloud Identity Services
Once the Metadata file and Certificate are received from the Identity Provider (Azure), upload them to the Corporate Identity Provider created earlier (Section 1, Step 4) to complete the SAML configuration.
- Return to Corporate Identity Providers, open the Trust tab, and click SAML 2.0 Configuration (which will currently display Not Configured).
- Browse and upload the Metadata file downloaded from Azure
(Section 2, Step 5), then click Save.
- The SAML-specific values and relevant certificates are automatically populated using the metadata file.
- Navigate to Applications & Resources >
Applications.
- Select the relevant tenant for which the SAML configuration is in progress.
- Go to the Trust tab > SAML 2.0 Configuration > Certificates tab.
- Upload the certificate received from Azure IdP (Section 2, Step 5).
Section 4: Additional Steps to be performed on SAP S/4HANA Public Cloud Tenant for SAML Configuration (Required only for Automate Evolve integration)
- Log in to the SAP Public Cloud tenant.
- Search for the Fiori application Maintain SAML2 Configuration (or use transaction code SAML2) and open it.
- In the application, navigate to the Secondary Signing Certificate section and click Upload Secondary Certificate.
- In the pop-up window, browse and select the Evolve certificate (the one uploaded on the Evolve connection page) in .crt format, then click Upload Secondary Certificate.
Expected Output: The Secondary Certificate section displays the details of the uploaded certificate.
Section 5: Additional Steps to be performed on SAP Cloud Identity Services for SAML Configuration (Required only for Automate Evolve integration)
- Log in to SAP Cloud IAS with administrative privileges.
- Navigate to Identity Providers > Corporate Identity Providers, and select the previously created IdP (Section 1, Step 4).
- Go to the Trust tab > SAML 2.0 Configuration, then scroll to the
Signing Certificates section.
- You will see the existing certificate (Azure).
- Browse and upload another Evolve certificate (.crt/.cer format), then click Add.
- Set the newly added certificate as Default, and click Save.
- Navigate to Applications & Resources >
Applications, and perform the following:
- Select the relevant tenant for which the SAML configuration is in progress.
- Go to the Trust tab > SAML 2.0 Configuration > Certificates section.
- Edit the existing certificate (Azure) using the pencil icon, and upload the Evolve certificate.
- Click Save, then click Edit again to mark the uploaded certificate as Default, and click Save once more.