Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
1,626
Part 2: Assign roles to Role Collection

In Cloud Foundry we use the Role Collection which contains all the list of role templates. In the security section navigate to "Role Collections" to view the list of role collections. Each role collection can hold multiple roles. The user is then assigned the appropriate role collection. Example, we can create two role collections one for basic read user access and one for read/ write access and accordingly assign the role collection to your user.

  1. To assign the roles navigate the SCP Cockpit to “Role Collections” tab and create a new role collection.

  2. Select “Add Role” and add the roles:



Part 3: Assign the Role Collection to user

Here we assign the role collection to an identity provider. In this case we have "SAP ID Service". Each corporate organization can have its own identity provider configured by the basis. More details about identity provider setup can be found here [link].

One advantage of Cloud Foundry over Neo environment that I find useful is we dont need to create a HANA dB user and make use of the AppToAppSSO to secure our applications, although there are many advantages of CF over Neo. In Cloud Foundry we use the JWT token that authenticates the user. To know more about the JSON Web Token follow the [link].

  1. On the SCP Cockpit navigate to “Trust Configuration” and select your identity provider:

  2. Specify your email Id and select “Assign Role Collection”:


More references can be found at:

https://developers.sap.com/tutorials/s4sdk-secure-cloudfoundry.html
https://community.sap.com/topics/cloud-platform-identity-authentication
https://www.sap.com/products/cloud-platform/use-cases/identity-provider.html

In next part we look at how to Implement NodeJS and XSJS APIs for reading the roles assigned to a user.

Thanks,
Mayur

 
1 Comment
former_member337435
Participant
0 Kudos
Hi mayur.b9999 ,

Thanks for the awesome blog ! I have followed everything for xsjs , except for Trust Configuration in Part 3: Assign the Role Collection to user. I am  unable to get the securitycontext in xsjs . Is Trust confugiration really needed. Thanks !

 
Labels in this area