on 01-20-2022 2:57 PM
Hey guys,
i have deployed mutliple CAP apps to my trial BTP and integrated those apps in my trial launchpad.
I gave myself all needed Roles and Role-Collections, so that i can see all apps(tiles) in my launchpad and all of them are working.
What i want:
Lets say i have two tiles, Tile1 and Tile2, but can only see Tile1 (Tile2 is hidden at the moment). I click on Tile1 and the app opens. Here i perform an action (press a button or check a checkbox) and confirm. With this action my user gets the "right" to see Tile2 in the launchpad. So if i go back to my launchpad, i can now see and click on Tile2.
My question: Is it possible to change the visibility of one tile through another one?
I know that you manage the launchpad apps under Security in the BTP, but i am curious too know if this is possible.
Thanks and regards,
Cemre
I would suggest you check out the documentation:
Access Administration Using APIs of the SAP Authorization and Trust Management Service
So in your case you would implement a functionality in Tile 1 that asks for the user that should be assigned to the Role Collection that contains Tile 2. The CAP app needs then to call the UAA API to do the assignment. When the user does a new login the tile should be visible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Cemre,
I would suggest you follow the instructions for https://api.sap.com/api/AuthorizationAPI/cloud-sdk/JavaScript or https://api.sap.com/api/AuthorizationAPI/cloud-sdk/Java if you use Java.
Best Regards
Gregor
Hi gregorw,
i followed the instructions for JavaScript and now the AuthorizationAPI is in my cap project.
Next is the usage example:
To consume the service via the pregenerated typed client library run the code snippet below. For more details about OpenAPI client libraries chose "OpenAPI Consumption Manual" from the "Helpful Links" menu.
import { RoleCollectionsApi } from 'AuthorizationAPI';The problem i have is, if i create a service.js file and paste it in there, i get the error message:
SyntaxError: Cannot use import statement outside a module
How do i continue? What do i have to do, to properly use the AuthorizationAPI?
Thank you for your help!
Best regards,
Cemre
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.