
Building Portal Sites on SAP Cloud Platform Cloud Foundry |
Part 1 – Creating your first portal site Part 2 – Understanding the Role Concepts Part 3 – Configuring Identity Provider and Authentication setup Part 4 – Consuming Classic UIs and Fiori Apps from S/4HANA system |
In this previous blog post, I walked through the steps required to setup role collections and assign them manually to end users. In this blog post, I will focus on how to map group of users from an Identity Provider with Role Collections. This would involve setup of trust between the Identity Provider and Portal site on SAP Cloud Platform Cloud Foundry environment. This is essential when you plan to rollout your portal site to end user and would have to assign the relevant apps to them based on their roles. For this blog, the Identity Provider which I have used is SAP Cloud Platform Identity Authentication service.
Navigate to IAS tenant and under “Applications & Resources”, access the Tenant Settings to download the Metadata File.
In your subaccount, create a new Trust Configuration.
Upload the Metadata file which you downloaded earlier and provide a name.
Navigate to the Application menu in IAS and create a new application. In the “SAML 2.0 Configuration” upload the SAML metadata file obtained from Cloud Platform subaccount. In the “Subject Name Identifier” ensure that you the value set as “E-Mail”
In IAS, I have created two groups. “CI_Portal” for Admin users and “mysales” for business users. I have assigned these groups to respective users in IAS as shown below.
Navigate to the “Trust Configuration” menu in Cloud Foundry subaccount and select the custom IdP configuration for IAS. In the “Role Collection Mapping” menu, you can create new entries to map existing Role Collections to IAS Groups (As shown below). Notice that there is no manual assignment of Role Collection to users. It could also be done using the next menu in this screen.
Finally disable the SAP ID Service as we will be using IAS as the IdP going forward
Its now time to test the Portal site. When I try to access the Portal site, it will now prompt me with a login screen from IAS
When I login as a business user, my corresponding IAS group (mysales) gets mapped to the Role Collection (Sales) during the authentication process and I get to see the Sales Order app.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
4 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |