Skip to Content
Technical Articles
Author's profile photo Imre Takacsi-Nagy

Configure Different Trust Configurations for the Same Identity Authentication Tenant (Azure AD Apps)

My name is Imre working at SAP since 2004. Now I’m at Identity Authentication Service area.

In this blog post I will explore in detail how to configure Different Trust Configurations for the Same Identity Authentication Tenant (Azure AD Apps)
I’m working in the Identity Authentication Service team, and we got several questions regarding the realization of Different Trust Configurations for the Same Identity Authentication Tenant.
The technical background is explained here.
So I have decided to build up a test scenario and share in details my experiences.
I will use third party tools for key generation as well and make the settings more visible by inserting the screen shots and pictures made be me.

 

Note: the article contains third party information about openssl and MS AZURE, which may change in the future.

Prerequisites

  1. You have an active license for SAP Cloud Platform Identity Authentication Service.
  2. ‘Manage Applications’ and ‘Manage Corporate Identity Providers’ authorizations are assigned to you as Administrator in IAS.
  3. You have an active AZURE license.
  4. You have created an Application in SAP Cloud Platform Identity Authentication Service

 

Step 1 :Configure Issuer Name at SAP Identity Authentication

  1.  logon to SAP Identity Authentication as admin:
    https://<tenant ID>.accounts.ondemand.com/admin
  2. Under Applications and Resources, choose the Applications tile. 
  3. Choose the Trust tab. 
  4. Under Conditional Authentication, choose Configure SAML 2.0 Requests to Corporate Identity Providers. 

  5. Under Configure Issuer Name, type the issuer suffix, which you want to add to the Identity Authentication default issuer name. 

    as a result the Issuer Name will be changed with the suffix at the end:
    (the suffix can be up to 32 chars long)
    https://<tenant ID>.accounts.ondemand.com/sf

 

Step 2 : Export and edit Metadata from SAP Identity Authentication

  1. In SAP Identity Authentication I export the metadata:
  2. Then I edit the metadata.xml with Notepad++
    and change the entityID tohttps://<tenant ID>.accounts.ondemand.com/sf
    and save it as metadata_new.xml

Step 3 : Create and configure an Application in AZURE

  1. (if the AZURE Application is not created yet)  open
    https://portal.azure.com/
  2.  Once the Application is created,
    –>I select  “Assign users and groups”
    and assign users.
  3. I Click on “Set up single sign on”
  4. I upload the metadata_new.xml into AZURE (which was created in point 2.2as a result at “BASIC SAML Configuration”
    the entityIDhttps://<tenant ID>.accounts.ondemand.com/sf
    will be shown.

Step 4 : Generate a certificate with a private key for the Azure applications.

  1. Precondition: OPENSSL is installed and configured as decribed:https://slproweb.com/products/Win32OpenSSL.html( I have downloaded the .MSI ) for WIN 64.
  2.  I open OPENSSL Application on my PC
  3.  I run this command:

    openssl req -x509 -days 365 -newkey rsa:2048 -keyout cert.pem -out cert.pem

  4. When FQDN will be asked :
    I give my tenant link :
    https://<tenant ID>.accounts.ondemand.com

    at the end a cert.pem file is created

  5.  I convert cert.pem file to cert.pfx:openssl pkcs12 -export -in cert.pem -inkey cert.pem -out cert.pfxat the end a cert.pfx file is created.
  6.  I upload the cert.pfx to
    Azure
    to the newly created APP (see STEP 3)
    at
    “SAML Signing Certificate”
  7. I make sure that the last uploaded Certificate is active.

Step 5 : Convert the certificate for the SAP Identity Authentication

  1. have to convert the previously created
    cert.pfx
    to
    cert.cer
    file.
  2. For example I did this in Chrome:2.1
    Open Google Chrome.2.2
    Select Show Advanced Settings > Manage Certificates.2.3
    Click Import to start the Certificate Import Wizard.2.4
    Click Next.​2.5
    Browse to the downloaded certificate cert.pfx file and click Next.

    2.6
    Enter the password I entered when I generated the cert.pfx certificate.

    2.7
    in Chrome export the certificate and save as cert.cer

  3. In SAP Identity Authentication (as admin)
    I go to
    Identity Providers
    –> Corporate Identity Providers
    –>edit my AZURE IdP
  4. AZURE IdP :
    SAML2 configuration –>
    I go to “Signing Certificate” –> press Add –>
    I upload the cert.cer

Summary

If all of the main five steps are done, then as a result calling the Application in an incognito mode will result a calling method:

Application  –> SAP Identity Authentication (as proxy) –> MS AZURE (as IdP) –> SAP Identity Authentication (as proxy)  –> Application.

P.S.
All other planned Applications created in SAP Identity Authenticationfor example APP1 till APP99 must connect in 1:1  to a separate AZURE Application and
there the same cert.pfx must be used.
(one signing certificate will be used for all of the AZURE applications)

If you read this please feel free to share feedback or thoughts in a comment.
I encourage you to follow my profile for similar content.

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.